aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/template_test.rb
diff options
context:
space:
mode:
authorartemave <artemave@gmail.com>2010-12-12 20:40:40 +0000
committerwycats <wycats@gmail.com>2010-12-26 22:32:15 -0800
commit6c5a3bb3125735760e92f49c3824d757ef87c61e (patch)
tree5abb3bd0173988dd66367f269318606500736dc3 /actionpack/test/template/template_test.rb
parentce21ea783255a30e330c7218a3043801dfe9ad52 (diff)
downloadrails-6c5a3bb3125735760e92f49c3824d757ef87c61e.tar.gz
rails-6c5a3bb3125735760e92f49c3824d757ef87c61e.tar.bz2
rails-6c5a3bb3125735760e92f49c3824d757ef87c61e.zip
all tests pass
Diffstat (limited to 'actionpack/test/template/template_test.rb')
-rw-r--r--actionpack/test/template/template_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/template_test.rb b/actionpack/test/template/template_test.rb
index 2ec640c84c..3432a02c3c 100644
--- a/actionpack/test/template/template_test.rb
+++ b/actionpack/test/template/template_test.rb
@@ -95,14 +95,14 @@ class TestERBTemplate < ActiveSupport::TestCase
def test_refresh_with_templates
@template = new_template("Hello", :virtual_path => "test/foo/bar")
@template.locals = [:key]
- @context.lookup_context.expects(:find_template).with("bar", "test/foo", false, [:key]).returns("template")
+ @context.lookup_context.expects(:find_template).with("bar", %w(test/foo), false, [:key]).returns("template")
assert_equal "template", @template.refresh(@context)
end
def test_refresh_with_partials
@template = new_template("Hello", :virtual_path => "test/_foo")
@template.locals = [:key]
- @context.lookup_context.expects(:find_template).with("foo", "test", true, [:key]).returns("partial")
+ @context.lookup_context.expects(:find_template).with("foo", %w(test), true, [:key]).returns("partial")
assert_equal "partial", @template.refresh(@context)
end