aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/testing/fixture_resolver_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-05-17 10:19:27 -0700
committerJosé Valim <jose.valim@gmail.com>2012-05-17 10:19:27 -0700
commitf5ebc9a232fbbee188be432ddecbbf961162ef2a (patch)
tree2a9cf8bb248c4385669825377a831e8b483e1ff3 /actionpack/test/template/testing/fixture_resolver_test.rb
parent6ada771a08196d8a5d790f8b4b2224aa8e1748b3 (diff)
parent8bea607265a2c9bb9bb2188b0a79089ca373b814 (diff)
downloadrails-f5ebc9a232fbbee188be432ddecbbf961162ef2a.tar.gz
rails-f5ebc9a232fbbee188be432ddecbbf961162ef2a.tar.bz2
rails-f5ebc9a232fbbee188be432ddecbbf961162ef2a.zip
Merge pull request #6309 from steveklabnik/fix-2394
Created a Raw handler for templates.
Diffstat (limited to 'actionpack/test/template/testing/fixture_resolver_test.rb')
-rw-r--r--actionpack/test/template/testing/fixture_resolver_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/testing/fixture_resolver_test.rb b/actionpack/test/template/testing/fixture_resolver_test.rb
index de83540468..9649f349cb 100644
--- a/actionpack/test/template/testing/fixture_resolver_test.rb
+++ b/actionpack/test/template/testing/fixture_resolver_test.rb
@@ -8,8 +8,8 @@ class FixtureResolverTest < ActiveSupport::TestCase
end
def test_should_return_template_for_declared_path
- resolver = ActionView::FixtureResolver.new("arbitrary/path" => "this text")
- templates = resolver.find_all("path", "arbitrary", false, {:locale => [], :formats => [:html], :handlers => []})
+ resolver = ActionView::FixtureResolver.new("arbitrary/path.erb" => "this text")
+ templates = resolver.find_all("path", "arbitrary", false, {:locale => [], :formats => [:html], :handlers => [:erb]})
assert_equal 1, templates.size, "expected one template"
assert_equal "this text", templates.first.source
assert_equal "arbitrary/path", templates.first.virtual_path