From 48accd02aefbbfa8eadfb47523a1d23e28332a0a Mon Sep 17 00:00:00 2001 From: rahul Date: Tue, 22 Aug 2017 21:41:13 +0530 Subject: [PATCH] Fix warning in rspec --- spec/models/registration_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/registration_spec.rb b/spec/models/registration_spec.rb index 25ec9888..e7824c08 100644 --- a/spec/models/registration_spec.rb +++ b/spec/models/registration_spec.rb @@ -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