diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2018-04-17 20:33:03 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2018-04-19 00:04:34 -0600 |
| commit | a3fdbc08ca75005ab9644dd7d3ac2e95e25aeaa1 (patch) | |
| tree | f2187f1d0c8a17c3e2a38bc746f792a047f14e52 /test | |
| parent | 04cd2bd029e7f2ebde32b1f384826a6e11ae50ff (diff) | |
ID in block attributes above document title takes precedence over ID defined inline
- change the behavior of the document title to match the behavior of section titles
Diffstat (limited to 'test')
| -rw-r--r-- | test/sections_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sections_test.rb b/test/sections_test.rb index 1b9ebcd8..3f3d4094 100644 --- a/test/sections_test.rb +++ b/test/sections_test.rb @@ -397,7 +397,7 @@ content assert_css 'body#idname', output, 1 end - test 'should use inline id instead of id defined in block attributes' do + test 'should use ID defined in block attributes instead of ID defined inline' do input = <<-EOS [#idname-block] = Document Title [[idname-inline]] @@ -405,7 +405,7 @@ content content EOS output = render_string input - assert_css 'body#idname-inline', output, 1 + assert_css 'body#idname-block', output, 1 end test 'block id above document title sets id on document' do |
