Use syntax compatible with Ruby 1.8/1.9

This commit is contained in:
Jon Atack 2014-10-21 05:54:30 +02:00
parent b6dc52d626
commit eb43bbe047
1 changed files with 1 additions and 1 deletions

View File

@ -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