This commit is contained in:
LianaGk 2018-06-14 18:51:49 +00:00 committed by GitHub
commit c6a5b802aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -25,12 +25,12 @@
= link_to 'Delete', admin_conference_registration_period_path,
method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger'
- else
- unless @conference.tickets.for_registration.empty?
- if can? :create, @conference.build_registration_period
= link_to 'New Registration Period', new_admin_conference_registration_period_path, class: 'btn btn-primary'
- else
.h3.text-left
- if @conference.tickets.for_registration.empty?
h3.text-left
No Registration Tickets!
%small
= link_to 'Create registration tickets', new_admin_conference_ticket_path
before creating the registration period.
- else
if can? :create, @conference.build_registration_period
= link_to 'New Registration Period', new_admin_conference_registration_period_path, class: 'btn btn-primary'

View file

@ -192,7 +192,7 @@ describe Ticket do
end
end
describe 'currency updation' do
describe 'currency update' do
context 'when more than one ticket exist for a conference' do
it 'should not allow currency update' do
ticket.update(price_currency: 'INR')