Skip to content

Commit

Permalink
Changed symbol platform to platforms for the commented out call to ge…
Browse files Browse the repository at this point in the history
…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
martinoconnor committed May 31, 2012
1 parent 4c8805d commit 9bbdceb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion railties/lib/rails/generators/app_base.rb
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion railties/test/generators/app_generator_test.rb
Expand Up @@ -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

Expand Down

0 comments on commit 9bbdceb

Please sign in to comment.