提交 92eb8d68 编写于 作者: C Chris Wanstrath

test doesn't work on all ruby versions

上级 e6576e02
......@@ -25,7 +25,9 @@ class StandaloneTest < Test::Unit::TestCase
assert_includes "Commands", standalone
assert_includes ".execute(*ARGV)", standalone
assert_not_includes "module Standalone", standalone
assert_equal File.read('man/hub.1'), standalone.scan(/__END__\s*(.+)/m).to_s
standalone =~ /__END__\s*(.+)/m
assert_equal File.read('man/hub.1'), $1
end
def test_standalone_save
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册