aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2016-01-25 23:47:36 +0000
committerAndrew White <andyw@pixeltrix.co.uk>2016-01-25 23:47:36 +0000
commit1cae5603e60b48193bc1aa3573d034383657e414 (patch)
treeeac797c201e8267a74347301c47f63f6da306e50
parentc9d336382a503769b331113ee11d6b09a6f8583b (diff)
downloadrails-1cae5603e60b48193bc1aa3573d034383657e414.tar.gz
rails-1cae5603e60b48193bc1aa3573d034383657e414.tar.bz2
rails-1cae5603e60b48193bc1aa3573d034383657e414.zip
Use 1.8 compatible hash syntax
-rw-r--r--actionpack/test/controller/render_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index 6210524cef..a52ba35cba 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -67,7 +67,7 @@ class TestController < ActionController::Base
def dynamic_render_with_file
# This is extremely bad, but should be possible to do.
file = params[:id] # => String, Hash
- render file: file
+ render :file => file
end
def conditional_hello_with_public_header
@@ -248,7 +248,7 @@ class TestController < ActionController::Base
def test_dynamic_render_with_file
# This is extremely bad, but should be possible to do.
assert File.exist?(File.join(File.dirname(__FILE__), '../../test/abstract_unit.rb'))
- response = get :dynamic_render_with_file, { id: '../\\../test/abstract_unit.rb' }
+ response = get :dynamic_render_with_file, { :id => '../\\../test/abstract_unit.rb' }
assert_equal File.read(File.join(File.dirname(__FILE__), '../../test/abstract_unit.rb')),
response.body
end
@@ -256,13 +256,13 @@ class TestController < ActionController::Base
def test_dynamic_render
assert File.exist?(File.join(File.dirname(__FILE__), '../../test/abstract_unit.rb'))
assert_raises ActionView::MissingTemplate do
- get :dynamic_render, { id: '../\\../test/abstract_unit.rb' }
+ get :dynamic_render, { :id => '../\\../test/abstract_unit.rb' }
end
end
def test_dynamic_render_file_hash
assert_raises ArgumentError do
- get :dynamic_render, { id: { file: '../\\../test/abstract_unit.rb' } }
+ get :dynamic_render, { :id => { :file => '../\\../test/abstract_unit.rb' } }
end
end