blob: 8cf1660d8f6daeaac7a6609c453b2f6d0d3faedc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
From 4f0f1b5d5249e05fa173b296af2ec6f6e4f78d33 Mon Sep 17 00:00:00 2001
From: SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
Date: Thu, 20 Dec 2012 16:49:00 +0900
Subject: [PATCH] change spy of after invoked controller action. because
ruby-2.0.0 waned unused variables
---
actionpack/test/controller/render_test.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index 7640bc1..6d91415 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -1433,10 +1433,11 @@ class RenderTest < ActionController::TestCase
end
def test_locals_option_to_assert_template_is_not_supported
+ get :partial_collection_with_locals
+
warning_buffer = StringIO.new
$stderr = warning_buffer
- get :partial_collection_with_locals
assert_template :partial => 'customer_greeting', :locals => { :greeting => 'Bonjour' }
assert_equal "the :locals option to #assert_template is only supported in a ActionView::TestCase\n", warning_buffer.string
ensure
--
1.8.0.1
|