提交 55afc7dc 编写于 作者: G Guillermo Iguaran

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

上级 3e559284
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册