Skip to content

Commit eaec59a

Browse files
committed
one more test
1 parent 8c9b8e6 commit eaec59a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/ransack/adapters/active_record/base_spec.rb

+4
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ module ActiveRecord
131131
expect { Person.ransack('') }.to_not raise_error
132132
end
133133

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+
134138
it 'raises InvalidSearchError exception if ransack! called with unknown condition' do
135139
expect { Person.ransack!(unknown_attr_eq: 'Ernie') }.to raise_error(InvalidSearchError)
136140
end

0 commit comments

Comments
 (0)