aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/query_cache_test.rb
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2011-10-08 10:01:58 +0530
committerArun Agrawal <arunagw@gmail.com>2011-10-08 10:01:58 +0530
commit34d950b066e65a65a224334769f4f515d0b7e073 (patch)
tree61c03d9d94ac1c75407e045a64353000ff4a169f /activerecord/test/cases/query_cache_test.rb
parent7f64e472772293a3a5bbf4a435d937dabd98ed92 (diff)
downloadrails-34d950b066e65a65a224334769f4f515d0b7e073.tar.gz
rails-34d950b066e65a65a224334769f4f515d0b7e073.tar.bz2
rails-34d950b066e65a65a224334769f4f515d0b7e073.zip
Fixed BodyProxy.new for tests! for wrong argument
Diffstat (limited to 'activerecord/test/cases/query_cache_test.rb')
-rw-r--r--activerecord/test/cases/query_cache_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/query_cache_test.rb b/activerecord/test/cases/query_cache_test.rb
index 7feac2b920..b2429d631f 100644
--- a/activerecord/test/cases/query_cache_test.rb
+++ b/activerecord/test/cases/query_cache_test.rb
@@ -237,7 +237,7 @@ class QueryCacheBodyProxyTest < ActiveRecord::TestCase
test "is polite to it's body and responds to it" do
body = Class.new(String) { def to_path; "/path"; end }.new
- proxy = ActiveRecord::QueryCache::BodyProxy.new(nil, body)
+ proxy = ActiveRecord::QueryCache::BodyProxy.new(nil, body, ActiveRecord::Base.connection_id)
assert proxy.respond_to?(:to_path)
assert_equal proxy.to_path, "/path"
end