aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2011-11-14 07:07:38 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2011-11-14 07:07:38 -0500
commit49cd6a0ff7a3f5b0e85707961c952bdc3b0a178f (patch)
treea1bcc4ac20f9d9de5a3785cfac825d3f6bffd9d7 /railties/test/generators
parentdf300a754bf64d0c350fdc8c69408c5bd04b80a3 (diff)
downloadrails-49cd6a0ff7a3f5b0e85707961c952bdc3b0a178f.tar.gz
rails-49cd6a0ff7a3f5b0e85707961c952bdc3b0a178f.tar.bz2
rails-49cd6a0ff7a3f5b0e85707961c952bdc3b0a178f.zip
Added therubyrhino to default Gemfile under JRuby
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/app_generator_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 955ed09361..a1bd2fbaa5 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -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'