We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c9b8e6 commit eaec59aCopy full SHA for eaec59a
spec/ransack/adapters/active_record/base_spec.rb
@@ -131,6 +131,10 @@ module ActiveRecord
131
expect { Person.ransack('') }.to_not raise_error
132
end
133
134
+ it 'raises ArgumentError exception if ransack! called with unknown condition' do
135
+ expect { Person.ransack!(unknown_attr_eq: 'Ernie') }.to raise_error(ArgumentError)
136
+ end
137
+
138
it 'raises InvalidSearchError exception if ransack! called with unknown condition' do
139
expect { Person.ransack!(unknown_attr_eq: 'Ernie') }.to raise_error(InvalidSearchError)
140
0 commit comments