Use Object#send to comply with Ruby 1.8.7

This commit is contained in:
Kevin Sjöberg 2013-02-06 14:25:37 +01:00
parent 8501b983d6
commit 3926857976
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ module Ransack
expect { subject.result }.to_not raise_error
end
it "escapes '%', '.' and '\\\\' in value" do
subject.public_send(:"#{method}=", '%._\\')
subject.send(:"#{method}=", '%._\\')
subject.result.to_sql.should match(regexp)
end
end