aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorRichard Huang <flyerhzm@gmail.com>2012-06-23 18:42:00 +0800
committerRichard Huang <flyerhzm@gmail.com>2012-06-23 20:19:21 +0800
commita6a48130837d7d573da641375093e877f8225a79 (patch)
tree8bc13baf26a81fcbcacded8888f49697799b66c0 /railties/test/application
parente1838bfcb805445b6eaf03f8f23501f560f939e8 (diff)
downloadrails-a6a48130837d7d573da641375093e877f8225a79.tar.gz
rails-a6a48130837d7d573da641375093e877f8225a79.tar.bz2
rails-a6a48130837d7d573da641375093e877f8225a79.zip
ruby 1.9 hash syntax for generated code
app/controllers/application_controller.rb app/views/layouts/application.html.erb config/application.rb config/routes.rb test/performance/browsing_test.rb
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/configuration_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb
index c1aa98e481..c813defe93 100644
--- a/railties/test/application/configuration_test.rb
+++ b/railties/test/application/configuration_test.rb
@@ -69,11 +69,11 @@ module ApplicationTests
Rails.env = "development"
assert_equal [:default, "development"], Rails.groups
- assert_equal [:default, "development", :assets], Rails.groups(:assets => [:development])
- assert_equal [:default, "development", :another, :assets], Rails.groups(:another, :assets => %w(development))
+ assert_equal [:default, "development", :assets], Rails.groups(assets: [:development])
+ assert_equal [:default, "development", :another, :assets], Rails.groups(:another, assets: %w(development))
Rails.env = "test"
- assert_equal [:default, "test"], Rails.groups(:assets => [:development])
+ assert_equal [:default, "test"], Rails.groups(assets: [:development])
ENV["RAILS_GROUPS"] = "javascripts,stylesheets"
assert_equal [:default, "test", "javascripts", "stylesheets"], Rails.groups
@@ -567,7 +567,7 @@ module ApplicationTests
app_file 'app/controllers/application_controller.rb', <<-RUBY
class ApplicationController < ActionController::Base
- protect_from_forgery :with => :reset_session # as we are testing API here
+ protect_from_forgery with: :reset_session # as we are testing API here
end
RUBY