summaryrefslogtreecommitdiff
path: root/test/text_test.rb
diff options
context:
space:
mode:
authorKen Dreyer <ktdreyer@ktdreyer.com>2014-04-08 11:53:20 -0500
committerKen Dreyer <ktdreyer@ktdreyer.com>2014-04-08 16:38:06 -0500
commitbfa5a3e681ee1dad18a0bd800f01255065be81c7 (patch)
tree638966ce910b8e99dba79e2d963b185e27219f0b /test/text_test.rb
parent402273b05f0e48ae4c26a977583c613b6a664f87 (diff)
tests: switch to minitest
Ruby 1.9+ uses Minitest as the backend for Test::Unit. As of Minitest 5, the shim no longer supports Test::Unit::TestCase. Adjust the test suite to support Minitest 5's syntax. Minitest versions 4 and below do not support the newer Minitest::Test class that arrived in version 5. For that case, use the MiniTest::Unit::TestCase class as a fallback.
Diffstat (limited to 'test/text_test.rb')
-rw-r--r--test/text_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/text_test.rb b/test/text_test.rb
index 5501e5d0..8b595673 100644
--- a/test/text_test.rb
+++ b/test/text_test.rb
@@ -200,7 +200,7 @@ This line is separated something that is not a horizontal rule...
end
test "unquoted text" do
- assert_no_match(/#/, render_string("An #unquoted# word"))
+ refute_match(/#/, render_string("An #unquoted# word"))
end
test "backtick-escaped text followed by single-quoted text" do