Skip to content

Commit 6724932

Browse files
committed
Write an example to reproduce the bug reported in #106
1 parent e6e1e5d commit 6724932

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

spec/docx/document_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,4 +467,12 @@
467467
File.delete(temp_file_path) if File.exist?(temp_file_path)
468468
end
469469
end
470+
471+
describe '#to_s' do
472+
let(:doc) { Docx::Document.open(@fixtures_path + '/weird_docx.docx') }
473+
474+
it 'does not raise error' do
475+
expect { doc.to_s }.to_not raise_error
476+
end
477+
end
470478
end

0 commit comments

Comments
 (0)