Merge pull request #1643 from rahul2240/fix-rspec

Fix warning in rspec
This commit is contained in:
Ana María Martínez Gómez 2017-08-24 08:57:40 +02:00 committed by GitHub
commit 5985daf677

View file

@ -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