Permalink
Browse files

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

…used
  • Loading branch information...
1 parent 3e55928 commit 55afc7dc609b6b2b7f7ce37537c0de5e4db8ca6b @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
@@ -210,9 +210,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 55afc7d

Please sign in to comment.