Create tests for models
This commit is contained in:
parent
7ee9b2966a
commit
9103f511a7
3 changed files with 41 additions and 0 deletions
15
spec/models/call_for_booth_spec.rb
Normal file
15
spec/models/call_for_booth_spec.rb
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe CallForBooth do
|
||||
it 'has a valid factory' do
|
||||
expect(build(:call_for_booths)).to be_valid
|
||||
end
|
||||
|
||||
it 'is not valid without a start_date' do
|
||||
should validate_presence_of(:start_date)
|
||||
end
|
||||
|
||||
it 'is not valid without an end_date' do
|
||||
should validate_presence_of(:end_date)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue