summaryrefslogtreecommitdiff
path: root/test/parser_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/parser_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/parser_test.rb')
-rw-r--r--test/parser_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parser_test.rb b/test/parser_test.rb
index 402287f3..e5965d82 100644
--- a/test/parser_test.rb
+++ b/test/parser_test.rb
@@ -482,7 +482,7 @@ Joe Cool
:page-layout: post
EOS
metadata, = parse_header_metadata input
- assert_not_equal 'page-layout: post', metadata['revremark']
+ refute_equal 'page-layout: post', metadata['revremark']
assert !metadata.has_key?('revdate')
end