spec/grape/exceptions/validation_spec.rb in grape-1.6.2 vs spec/grape/exceptions/validation_spec.rb in grape-1.7.0
- old
+ new
@@ -1,9 +1,7 @@
# frozen_string_literal: true
-require 'spec_helper'
-
describe Grape::Exceptions::Validation do
it 'fails when params are missing' do
expect { described_class.new(message: 'presence') }.to raise_error(ArgumentError, /missing keyword:.+?params/)
end
@@ -13,9 +11,9 @@
end
end
context 'when message is a String' do
it 'does not store the message_key' do
- expect(described_class.new(params: ['id'], message: 'presence').message_key).to eq(nil)
+ expect(described_class.new(params: ['id'], message: 'presence').message_key).to be_nil
end
end
end