提交 da29e0bf 编写于 作者: T Teng Siong Ong

don't include 'turn' gem in Gemfile if test unit is skipped.

上级 ea306da4
......@@ -173,7 +173,7 @@ def gem_for_ruby_debugger
end
def gem_for_turn
unless RUBY_VERSION < "1.9.2"
unless RUBY_VERSION < "1.9.2" || options[:skip_test_unit]
<<-GEMFILE.strip_heredoc
group :test do
# Pretty printed test output
......
......@@ -210,6 +210,13 @@ def test_inclusion_of_turn_gem_in_gemfile
end
end
def test_turn_gem_is_not_included_in_gemfile_if_skipping_test_unit
run_generator [destination_root, "--skip-test-unit"]
assert_file "Gemfile" do |contents|
assert_no_match /gem 'tuarn'/, contents unless RUBY_VERSION < '1.9.2'
end
end
def test_inclusion_of_ruby_debug
run_generator
assert_file "Gemfile" do |contents|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册