提交 906009cc 编写于 作者: R Rafael Mendonça França

Merge pull request #6387 from kennyj/fix_test_20120519

Fix build: can't convert Regexp to String
...@@ -19,6 +19,6 @@ def test_default_message ...@@ -19,6 +19,6 @@ def test_default_message
log = StringIO.new log = StringIO.new
self.stubs(:logger).returns(Logger.new(log)) self.stubs(:logger).returns(Logger.new(log))
benchmark {} benchmark {}
assert_match(log.rewind && log.read, /Benchmarking \(\d+.\d+ms\)/) assert_match(/Benchmarking \(\d+.\d+ms\)/, log.rewind && log.read)
end end
end end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册