Merge pull request #2844 from hennevogel/refactoring/factory-linting
Validate factories exactly once
This commit is contained in:
commit
95609358ec
25 changed files with 5 additions and 136 deletions
|
|
@ -18,10 +18,6 @@ describe Event do
|
|||
end
|
||||
|
||||
describe 'validation' do
|
||||
it 'has a valid factory' do
|
||||
expect(build(:event)).to be_valid
|
||||
end
|
||||
|
||||
it { is_expected.to validate_presence_of(:title) }
|
||||
it { is_expected.to validate_presence_of(:abstract) }
|
||||
it { is_expected.to validate_presence_of(:program) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue