test/parser_test.rb in asciidoctor-1.5.6 vs test/parser_test.rb in asciidoctor-1.5.6.1
- old
+ new
@@ -604,11 +604,11 @@
v8.6.8,
EOS
metadata, _ = parse_header_metadata input
assert_equal 7, metadata.size
assert_equal '8.6.8', metadata['revnumber']
- assert !metadata.has_key?('revdate')
+ refute metadata.has_key?('revdate')
end
# Asciidoctor recognizes a standalone revision without a trailing comma
test 'parse rev number' do
input = <<-EOS
@@ -616,11 +616,11 @@
v8.6.8
EOS
metadata, _ = parse_header_metadata input
assert_equal 7, metadata.size
assert_equal '8.6.8', metadata['revnumber']
- assert !metadata.has_key?('revdate')
+ refute metadata.has_key?('revdate')
end
# while compliant w/ AsciiDoc, this is just sloppy parsing
test "treats arbitrary text on rev line as revdate" do
input = <<-EOS
@@ -648,20 +648,20 @@
Joe Cool
:page-layout: post
EOS
metadata, _ = parse_header_metadata input
refute_equal 'page-layout: post', metadata['revremark']
- assert !metadata.has_key?('revdate')
+ refute metadata.has_key?('revdate')
end
test "parse rev remark only" do
input = <<-EOS
Joe Cool
:Must start revremark-only line with space
EOS
metadata, _ = parse_header_metadata input
assert_equal 'Must start revremark-only line with space', metadata['revremark']
- assert !metadata.has_key?('revdate')
+ refute metadata.has_key?('revdate')
end
test "skip line comments before author" do
input = <<-EOS
// Asciidoctor