Skip to content

Commit ee8f536

Browse files
committed
update specs
1 parent 28cfb79 commit ee8f536

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

spec/sax/handler_spec.rb

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ module Boilerpipe::SAX
2626
end
2727

2828
describe '#flush_block' do
29+
it 'resets flush'
30+
it 'sets title with last text from TITLE tag'
31+
it 'clears out text_buffer'
32+
it 'clears out token_buffer'
33+
it 'determins line and word counts'
34+
it 'creates text block'
35+
it 'classifies text block with labels'
36+
it 'adds text block to document'
2937
end
3038

3139
describe '#text_document' do
@@ -68,14 +76,14 @@ module Boilerpipe::SAX
6876
end
6977

7078
describe '#add_label_action' do
71-
context 'with a nil as the last element in the label stacks' do
79+
context 'with an array as the last element in the label stacks' do
7280
before { subject.start_element('boom') }
7381

74-
it 'removes that nil' do
75-
expect(subject.label_stacks.first).to eq nil
82+
it 'adds the label' do
83+
expect(subject.label_stacks.last).to eq []
7684
subject.add_label_action(:boom)
77-
expect(subject.label_stacks.first).to eq [:boom]
78-
expect(subject.label_stacks.size).to eq 1
85+
expect(subject.label_stacks.last).to eq [:boom]
86+
expect(subject.label_stacks.size).to eq 2
7987
end
8088
end
8189
end

0 commit comments

Comments
 (0)