mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #3249 from arunagw/query_cache_test_fix
Fixed BodyProxy.new for tests! for wrong argument
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user