This commit is contained in:
Nishanth Vijayan 2017-03-26 16:34:16 +00:00 committed by GitHub
commit 2c1623a73b
2 changed files with 6 additions and 0 deletions

View file

@ -45,6 +45,11 @@ describe Ticket do
end
end
it 'allows updating currency of ticket if its the only ticket of the conference' do
ticket.price_currency = 'INR'
expect(ticket).to be_valid
end
describe 'association' do
it { should belong_to(:conference) }
it { should have_many(:ticket_purchases).dependent(:destroy) }