mirror of https://github.com/rails/rails
Added therubyrhino to default Gemfile under JRuby
This commit is contained in:
parent
df300a754b
commit
49cd6a0ff7
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue