File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments