From 7a191ffe44b9a0f08489b95cfb58f18ac8c641d6 Mon Sep 17 00:00:00 2001 From: Genadi Samokovarov Date: Mon, 22 Sep 2014 21:44:48 +0200 Subject: Fix improper value types used to instantiate a Template in AV::NullResolver While trying to provide a reproducible test for #17008 I stumbled on this one. Seems to be quite an old piece of code, but its definitely useful in situations like the reproducible test cases like the one above. --- actionview/lib/action_view/testing/resolvers.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'actionview') diff --git a/actionview/lib/action_view/testing/resolvers.rb b/actionview/lib/action_view/testing/resolvers.rb index dfb7d463b4..63a60542d4 100644 --- a/actionview/lib/action_view/testing/resolvers.rb +++ b/actionview/lib/action_view/testing/resolvers.rb @@ -46,9 +46,8 @@ module ActionView #:nodoc: class NullResolver < PathResolver def query(path, exts, formats) handler, format, variant = extract_handler_and_format_and_variant(path, formats) - [ActionView::Template.new("Template generated by Null Resolver", path, handler, :virtual_path => path, :format => format, :variant => variant)] + [ActionView::Template.new("Template generated by Null Resolver", path.virtual, handler, :virtual_path => path.virtual, :format => format, :variant => variant)] end end - end -- cgit v1.2.3