aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/testing
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
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')
-rw-r--r--actionpack/test/template/testing/fixture_resolver_test.rb4
-rw-r--r--actionpack/test/template/testing/null_resolver_test.rb4
2 files changed, 4 insertions, 4 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
diff --git a/actionpack/test/template/testing/null_resolver_test.rb b/actionpack/test/template/testing/null_resolver_test.rb
index e142506e6a..535ad3ab14 100644
--- a/actionpack/test/template/testing/null_resolver_test.rb
+++ b/actionpack/test/template/testing/null_resolver_test.rb
@@ -3,10 +3,10 @@ require 'abstract_unit'
class NullResolverTest < ActiveSupport::TestCase
def test_should_return_template_for_any_path
resolver = ActionView::NullResolver.new()
- templates = resolver.find_all("path", "arbitrary", false, {:locale => [], :formats => [:html], :handlers => []})
+ templates = resolver.find_all("path.erb", "arbitrary", false, {:locale => [], :formats => [:html], :handlers => []})
assert_equal 1, templates.size, "expected one template"
assert_equal "Template generated by Null Resolver", templates.first.source
- assert_equal "arbitrary/path", templates.first.virtual_path
+ assert_equal "arbitrary/path.erb", templates.first.virtual_path
assert_equal [:html], templates.first.formats
end
end