Stop validating factories in specs
We do validate all of them in a before(:suite) already.
This commit is contained in:
parent
86b2bd426a
commit
0104671e01
20 changed files with 0 additions and 104 deletions
|
|
@ -8,10 +8,6 @@ describe RegistrationPeriod do
|
|||
let!(:registration_period) { create(:registration_period, start_date: Date.today - 2, end_date: Date.today - 1, conference: conference) }
|
||||
|
||||
describe 'validations' do
|
||||
it 'has a valid factory' do
|
||||
expect(build(:registration_period)).to be_valid
|
||||
end
|
||||
|
||||
it 'is not valid without a start_date' do
|
||||
should validate_presence_of(:start_date)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue