Permalink
Browse files

Add test to verify that therubyrhino isn't included when JRuby isn't …

…used
  • Loading branch information...
1 parent 8b8ff98 commit 80b1d4d0c5958f0f7094395e39ab28c0b1d9f1d9 @guilleiguaran committed Dec 10, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 railties/test/generators/app_generator_test.rb
View
6 railties/test/generators/app_generator_test.rb
@@ -184,9 +184,13 @@ def test_generator_if_skip_sprockets_is_given
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

0 comments on commit 80b1d4d

Please sign in to comment.