Added model test
Added test for physical ticket model.
This commit is contained in:
parent
5c56683ae8
commit
d7678b2fa0
4 changed files with 25 additions and 18 deletions
14
spec/models/physical_ticket_spec.rb
Normal file
14
spec/models/physical_ticket_spec.rb
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe PhysicalTicket do
|
||||
|
||||
describe 'association' do
|
||||
it { is_expected.to belong_to :ticket_purchase }
|
||||
end
|
||||
|
||||
describe 'validations' do
|
||||
it 'has a valid factory' do
|
||||
expect(build(:physical_ticket)).to be_valid
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue