Skip to content

Commit 5a382e3

Browse files
committed
num_words_text_anchor spec
1 parent a55a786 commit 5a382e3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/document/text_block_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ module Boilerpipe
5656
subject.merge_next(another_block)
5757
expect(subject.num_words).to eq 1
5858
end
59+
60+
it 'num_words_in_anchor_text gets combined' do
61+
another_block = Document::TextBlock.new('good-bye', 1, 1)
62+
subject.merge_next(another_block)
63+
expect(subject.num_words_in_anchor_text).to eq 1
64+
end
5965
end
6066

6167
describe '#add_label' do

0 commit comments

Comments
 (0)