diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-12-09 21:38:10 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-12-09 21:38:10 -0500 |
commit | 55afc7dc609b6b2b7f7ce37537c0de5e4db8ca6b (patch) | |
tree | f4f5c1d9154b1ea7216a9e7a28958e29dd052904 /railties/test/generators | |
parent | 3e5592848ac7fd58608e3f6c42778a2feb53788f (diff) | |
download | rails-55afc7dc609b6b2b7f7ce37537c0de5e4db8ca6b.tar.gz rails-55afc7dc609b6b2b7f7ce37537c0de5e4db8ca6b.tar.bz2 rails-55afc7dc609b6b2b7f7ce37537c0de5e4db8ca6b.zip |
Add test to verify that therubyrhino isn't included when JRuby isn't used
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index baa80419a6..a0475fa21d 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -210,9 +210,13 @@ class AppGeneratorTest < Rails::Generators::TestCase end def test_inclusion_of_therubyrhino_under_jruby + run_generator([destination_root]) if defined?(JRUBY_VERSION) - run_generator([destination_root]) assert_file "Gemfile", /gem\s+["']therubyrhino["']$/ + else + assert_file "Gemfile" do |content| + assert_no_match(/gem\s+["']therubyrhino["']$/, content) + end end end |