From 39268579764f42c5548e7610fea6d0d33d1fda3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Sj=C3=B6berg?= Date: Wed, 6 Feb 2013 14:25:37 +0100 Subject: [PATCH] Use Object#send to comply with Ruby 1.8.7 --- spec/ransack/predicate_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/ransack/predicate_spec.rb b/spec/ransack/predicate_spec.rb index aae41d7..ff9a00a 100644 --- a/spec/ransack/predicate_spec.rb +++ b/spec/ransack/predicate_spec.rb @@ -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