Skip to content

Commit

Permalink
Merge pull request #1202 from yahonda/address_raise_error_warning
Browse files Browse the repository at this point in the history
Address RSpec warning by specifying as ArgumentError
  • Loading branch information
scarroll32 authored Jan 26, 2021
2 parents 78a85eb + e1c0462 commit 3f19914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/ransack/adapters/active_record/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ module ActiveRecord
end

it 'raises exception if ransack! called with unknown condition' do
expect { Person.ransack!(unknown_attr_eq: 'Ernie') }.to raise_error
expect { Person.ransack!(unknown_attr_eq: 'Ernie') }.to raise_error(ArgumentError)
end

it 'does not modify the parameters' do
Expand Down

0 comments on commit 3f19914

Please sign in to comment.