diff --git a/spec/models/blocked_user_spec.rb b/spec/models/blocked_user_spec.rb index 1ff2d2da..479f7200 100644 --- a/spec/models/blocked_user_spec.rb +++ b/spec/models/blocked_user_spec.rb @@ -9,12 +9,12 @@ context 'validating' do it 'should require a user' do without_user = build :blocked_user, user: nil - expect(without_user).to fail_validation user: "can't be blank" + expect(without_user).to fail_validation end it 'should require a blocked_user' do without_blocked_user = build :blocked_user, blocked_user: nil - expect(without_blocked_user).to fail_validation blocked_user: "can't be blank" + expect(without_blocked_user).to fail_validation end end diff --git a/spec/models/user_conversation_spec.rb b/spec/models/user_conversation_spec.rb index 1e33bc9a..ba62869b 100644 --- a/spec/models/user_conversation_spec.rb +++ b/spec/models/user_conversation_spec.rb @@ -6,7 +6,7 @@ context 'validating' do it 'should require a user' do without_user = build :user_conversation, user_id: nil - expect(without_user).to fail_validation user: "can't be blank" + expect(without_user).to fail_validation end end