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
|
|
@ -21,10 +21,6 @@ describe User do
|
|||
let(:events_registration) { create(:events_registration, event: event1, registration: registration) }
|
||||
|
||||
describe 'validation' do
|
||||
it 'has a valid factory' do
|
||||
expect(build(:user)).to be_valid
|
||||
end
|
||||
|
||||
it { is_expected.to validate_presence_of(:email) }
|
||||
it { is_expected.to validate_presence_of(:username) }
|
||||
it { is_expected.to validate_uniqueness_of(:username).ignoring_case_sensitivity }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue