diff options
author | Xavier Noria <fxn@hashref.com> | 2016-08-06 19:36:34 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-08-06 19:36:34 +0200 |
commit | 63fff600accb41b56a3e6ac403d9b1732de3086d (patch) | |
tree | eabc84f16214eade7d44386de14a23415a9c3e3d /actionview/test/actionpack/controller/view_paths_test.rb | |
parent | 5b6eb1d58b48fada298215b2cccda89f993890c3 (diff) | |
download | rails-63fff600accb41b56a3e6ac403d9b1732de3086d.tar.gz rails-63fff600accb41b56a3e6ac403d9b1732de3086d.tar.bz2 rails-63fff600accb41b56a3e6ac403d9b1732de3086d.zip |
modernizes hash syntax in actionview
Diffstat (limited to 'actionview/test/actionpack/controller/view_paths_test.rb')
-rw-r--r-- | actionview/test/actionpack/controller/view_paths_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionview/test/actionpack/controller/view_paths_test.rb b/actionview/test/actionpack/controller/view_paths_test.rb index cdfaab5979..0ce515bba5 100644 --- a/actionview/test/actionpack/controller/view_paths_test.rb +++ b/actionview/test/actionpack/controller/view_paths_test.rb @@ -7,7 +7,7 @@ class ViewLoadPathsTest < ActionController::TestCase before_action :add_view_path, only: :hello_world_at_request_time def hello_world() end - def hello_world_at_request_time() render(:action => "hello_world") end + def hello_world_at_request_time() render(action: "hello_world") end private def add_view_path @@ -18,7 +18,7 @@ class ViewLoadPathsTest < ActionController::TestCase module Test class SubController < ActionController::Base layout "test/sub" - def hello_world; render(:template => "test/hello_world"); end + def hello_world; render(template: "test/hello_world"); end end end @@ -132,8 +132,8 @@ class ViewLoadPathsTest < ActionController::TestCase template.identifier, template.handler, { - :virtual_path => template.virtual_path, - :format => template.formats + virtual_path: template.virtual_path, + format: template.formats } ) end |