summaryrefslogtreecommitdiff
path: root/test/parser_test.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2018-04-17 22:44:29 -0600
committerDan Allen <dan.j.allen@gmail.com>2018-04-19 01:11:31 -0600
commita023b5d599e61f7c69a2072c7ada9de22a39cc90 (patch)
tree200e284f2ab2f4e39667ea9c4b206883eb7e9c08 /test/parser_test.rb
parenta3fdbc08ca75005ab9644dd7d3ac2e95e25aeaa1 (diff)
resolves #2174 shorthand attribute syntax no longer resets block style
- using the shorthand syntax to set block attributes (id, roles, options) doesn't reset block style - roles specified using shorthand syntax are additive - parse style attribute eagerly, after reading each block attribute line - simplify check for discrete heading
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 cfe77794..e6db0675 100644
--- a/test/parser_test.rb
+++ b/test/parser_test.rb
@@ -351,7 +351,7 @@ context "Parser" do
attributes = {1 => '%header', 'options' => 'footer', 'footer-option' => ''}
style = Asciidoctor::Parser.parse_style_attribute(attributes)
assert_nil style
- assert_equal 'header,footer', attributes['options']
+ assert_equal 'footer,header', attributes['options']
assert_equal '', attributes['header-option']
assert_equal '', attributes['footer-option']
end