Skip to content

Commit

Permalink
Add test to verify that therubyrhino isn't included when JRuby isn't …
Browse files Browse the repository at this point in the history
…used
  • Loading branch information
guilleiguaran committed Dec 10, 2011
1 parent 3e55928 commit 55afc7d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion railties/test/generators/app_generator_test.rb
Expand Up @@ -210,9 +210,13 @@ def test_generator_if_skip_sprockets_is_given
end end


def test_inclusion_of_therubyrhino_under_jruby def test_inclusion_of_therubyrhino_under_jruby
run_generator([destination_root])
if defined?(JRUBY_VERSION) if defined?(JRUBY_VERSION)
run_generator([destination_root])
assert_file "Gemfile", /gem\s+["']therubyrhino["']$/ assert_file "Gemfile", /gem\s+["']therubyrhino["']$/
else
assert_file "Gemfile" do |content|
assert_no_match(/gem\s+["']therubyrhino["']$/, content)
end
end end
end end


Expand Down

0 comments on commit 55afc7d

Please sign in to comment.