Use syntax compatible with Ruby 1.8/1.9
This commit is contained in:
parent
b6dc52d626
commit
eb43bbe047
|
@ -132,7 +132,7 @@ module Ransack
|
|||
end
|
||||
end
|
||||
it 'filters predicates with multi-value :only' do
|
||||
html = @f.predicate_select only: %i(eq lt)
|
||||
html = @f.predicate_select only: [:eq, :lt]
|
||||
Predicate.names.reject { |k| k =~ /^(eq|lt)/ }.each do |key|
|
||||
expect(html).not_to match /<option value="#{key}">/
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue