mirror of
https://github.com/openSUSE/osem.git
synced 2026-05-19 14:11:52 -04:00
Fix warning in rspec
This commit is contained in:
@@ -20,7 +20,7 @@ describe 'Registration' do
|
||||
describe 'registration_limit_not_exceed' do
|
||||
it 'is not valid when limit exceeded' do
|
||||
conference.registration_limit = 1
|
||||
expect { create(:registration, conference: conference, user: user) }.to raise_error
|
||||
expect { create(:registration, conference: conference, user: user) }.to raise_error('Validation failed: User already Registered!, Registration limit exceeded')
|
||||
expect(user.registrations.size).to be 1
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user