aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/testing/fixture_resolver_test.rb
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2012-05-13 20:22:29 -0400
committerSteve Klabnik <steve@steveklabnik.com>2012-05-17 12:14:20 -0500
commit8bea607265a2c9bb9bb2188b0a79089ca373b814 (patch)
tree61002877ed6a54499d95b957a23e3a5b183cd577 /actionpack/test/template/testing/fixture_resolver_test.rb
parent1839ecd2288680dba8533610eb4c9dfe2ab6326e (diff)
downloadrails-8bea607265a2c9bb9bb2188b0a79089ca373b814.tar.gz
rails-8bea607265a2c9bb9bb2188b0a79089ca373b814.tar.bz2
rails-8bea607265a2c9bb9bb2188b0a79089ca373b814.zip
Created a Raw handler for templates.
Fixes #2394
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