Skip to content

Commit a965263

Browse files
committed
Added addition spec for output stream
1 parent d0d6fb6 commit a965263

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

spec/docx/document_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,17 @@
387387
doc = Docx::Document.open(@fixtures_path + '/basic.docx')
388388
expect(doc.stream).to be_a(StringIO)
389389
end
390+
391+
context 'should return a valid docx stream' do
392+
before do
393+
doc = Docx::Document.open(@fixtures_path + '/basic.docx')
394+
result = doc.stream
395+
396+
@doc = Docx::Document.open_buffer(result)
397+
end
398+
399+
it_behaves_like 'reading'
400+
end
390401
end
391402

392403
describe 'outputting html' do

0 commit comments

Comments
 (0)