Permalink
Browse files

Changed symbol platform to platforms for the commented out call to ge…

…m 'therubyracer'.

Dependency.rb expects the symbol to be named :platforms as opposed to platform. RubyMine's inspections indicate that the symbol should be named :platforms.
Updating tests.
  • Loading branch information...
1 parent 4c8805d commit 9bbdceb34d33aa31567447e43b5fb5ea638e14fa @martinoconnor martinoconnor committed May 31, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 railties/lib/rails/generators/app_base.rb
  2. +1 −1 railties/test/generators/app_generator_test.rb
@@ -234,7 +234,7 @@ def javascript_runtime_gemfile_entry
if defined?(JRUBY_VERSION)
"gem 'therubyrhino'\n"
else
- "# gem 'therubyracer', :platform => :ruby\n"
+ "# gem 'therubyracer', :platforms => :ruby\n"
end
end
@@ -253,7 +253,7 @@ def test_inclusion_of_javascript_runtime
if defined?(JRUBY_VERSION)
assert_file "Gemfile", /gem\s+["']therubyrhino["']$/
else
- assert_file "Gemfile", /# gem\s+["']therubyracer["']+, :platform => :ruby$/
+ assert_file "Gemfile", /# gem\s+["']therubyracer["']+, :platforms => :ruby$/
end
end

0 comments on commit 9bbdceb

Please sign in to comment.