Fix the test failures
This commit is contained in:
parent
50e876dd6f
commit
e85ecede4c
29 changed files with 232 additions and 232 deletions
|
|
@ -346,7 +346,7 @@ describe User do
|
|||
describe '#confirmed?' do
|
||||
context 'confirmed user' do
|
||||
it 'returns true' do
|
||||
expect(user.confirmed?).to eq true
|
||||
expect(user.confirmed?).to be true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -354,7 +354,7 @@ describe User do
|
|||
before { user.update_attribute(:confirmed_at, nil) }
|
||||
|
||||
it 'returns false' do
|
||||
expect(user.confirmed?).to eq false
|
||||
expect(user.confirmed?).to be false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -395,7 +395,7 @@ describe User do
|
|||
|
||||
describe 'rolify' do
|
||||
it 'returns the correct role' do
|
||||
expect(user_admin.is_admin).to eq(true)
|
||||
expect(user_admin.is_admin).to be(true)
|
||||
expect(organizer.roles.first).to eq(organizer_role)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue