Added therubyrhino to default Gemfile under JRuby

This commit is contained in:
Guillermo Iguaran 2011-11-14 07:07:38 -05:00
parent df300a754b
commit 49cd6a0ff7
2 changed files with 8 additions and 0 deletions

View File

@ -199,6 +199,7 @@ module Rails
group :assets do
gem 'sass-rails', :git => 'git://github.com/rails/sass-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'
end
GEMFILE

View File

@ -208,6 +208,13 @@ class AppGeneratorTest < Rails::Generators::TestCase
assert_file "test/performance/browsing_test.rb"
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
run_generator
assert_file 'test'