aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-17 10:27:21 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-17 10:27:38 -0200
commit626d0b157f5ccf8a42401e6a111432912331aa47 (patch)
tree5f93c706dde29dddded56b2b8ecc1df800cc40ac /actionpack/test
parenta5013bb5af299db6bf97f67d4198220280717e80 (diff)
downloadrails-626d0b157f5ccf8a42401e6a111432912331aa47.tar.gz
rails-626d0b157f5ccf8a42401e6a111432912331aa47.tar.bz2
rails-626d0b157f5ccf8a42401e6a111432912331aa47.zip
Do not run this streaming test in Ruby 1.8, fix syntax error
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/layout_test.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/actionpack/test/controller/layout_test.rb b/actionpack/test/controller/layout_test.rb
index 38c4baceb0..d8b04119f2 100644
--- a/actionpack/test/controller/layout_test.rb
+++ b/actionpack/test/controller/layout_test.rb
@@ -81,7 +81,8 @@ end
class StreamingLayoutController < LayoutTest
def render(*args)
options = args.extract_options!
- super(*args, options.merge(:stream => true))
+ options[:stream] = true
+ super(*(args << options))
end
end
@@ -129,10 +130,12 @@ class LayoutSetInResponseTest < ActionController::TestCase
assert_template :layout => "layouts/layout_test"
end
- def test_layout_set_when_using_streaming_layout
- @controller = StreamingLayoutController.new
- get :hello
- assert_template :hello
+ if RUBY_VERSION >= '1.9'
+ def test_layout_set_when_using_streaming_layout
+ @controller = StreamingLayoutController.new
+ get :hello
+ assert_template :hello
+ end
end
def test_layout_set_when_set_in_controller