kitabu 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/kitabu/footnotes/html.rb +2 -0
- data/lib/kitabu/version.rb +1 -1
- data/spec/kitabu/footnotes/html_spec.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd86f5ee69244e8b29bfaece12650d010841a669
|
4
|
+
data.tar.gz: 9e091f5f94a6c452f6e76722ad690902999c52a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab2dd6d9710198b3a7da0027826b108e074e4ef35c43c3012cc89e160c9d2d13d39723c26dffae53b9a00f665f95b0bf92a98417a737ca317a67ba46832abcfb
|
7
|
+
data.tar.gz: 345c9f9fb488991a3c7507c4eb15d5b2454b75846a85cc29b30881b1fe81aba00203eded8401be5a13ef5385787ac81abb700a3d4bd4b95ae60f6973aed3ad26
|
data/Gemfile.lock
CHANGED
data/lib/kitabu/version.rb
CHANGED
@@ -57,6 +57,14 @@ describe Kitabu::Footnotes::HTML do
|
|
57
57
|
expect(chapter2).to have_tag('sup[id=fnref4]', count: 1)
|
58
58
|
end
|
59
59
|
|
60
|
+
it 'updates link to footnote' do
|
61
|
+
expect(chapter1).to have_tag('sup:nth-child(1) > a', text: '1', count: 2)
|
62
|
+
expect(chapter1).to have_tag('sup:nth-child(2) > a', text: '2', count: 1)
|
63
|
+
|
64
|
+
expect(chapter2).to have_tag('sup:nth-child(1) > a', text: '3', count: 2)
|
65
|
+
expect(chapter2).to have_tag('sup:nth-child(2) > a', text: '4', count: 1)
|
66
|
+
end
|
67
|
+
|
60
68
|
it 'sets footnote link-back' do
|
61
69
|
expect(chapter1).to have_tag('.footnotes li:nth-child(1) a[rev=footnote][href="#fnref1"]')
|
62
70
|
expect(chapter1).to have_tag('.footnotes li:nth-child(2) a[rev=footnote][href="#fnref2"]')
|