Skip to content

Commit

Permalink
Added therubyrhino to default Gemfile under JRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
guilleiguaran committed Nov 14, 2011
1 parent df300a7 commit 49cd6a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions railties/lib/rails/generators/app_base.rb
Expand Up @@ -199,6 +199,7 @@ def assets_gemfile_entry
group :assets do group :assets do
gem 'sass-rails', :git => 'git://github.com/rails/sass-rails.git' gem 'sass-rails', :git => 'git://github.com/rails/sass-rails.git'
gem 'coffee-rails', :git => 'git://github.com/rails/coffee-rails.git' gem 'coffee-rails', :git => 'git://github.com/rails/coffee-rails.git'
#{"gem 'therubyrhino'\n" if defined?(JRUBY_VERSION)}
gem 'uglifier', '>= 1.0.3' gem 'uglifier', '>= 1.0.3'
end end
GEMFILE GEMFILE
Expand Down
7 changes: 7 additions & 0 deletions railties/test/generators/app_generator_test.rb
Expand Up @@ -208,6 +208,13 @@ def test_generator_if_skip_sprockets_is_given
assert_file "test/performance/browsing_test.rb" assert_file "test/performance/browsing_test.rb"
end end


def test_inclusion_of_therubyrhino_under_jruby
if defined?(JRUBY_VERSION)
run_generator([destination_root])
assert_file "Gemfile", /gem\s+["']therubyrhino["']$/
end
end

def test_creation_of_a_test_directory def test_creation_of_a_test_directory
run_generator run_generator
assert_file 'test' assert_file 'test'
Expand Down

0 comments on commit 49cd6a0

Please sign in to comment.