Skip to content

Commit 90de4c1

Browse files
committed
Reproduce the error reported ruby-docx#142
1 parent b928484 commit 90de4c1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

spec/docx/document_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,4 +522,13 @@
522522
end
523523
end
524524

525+
describe '#to_html' do
526+
before do
527+
@doc = Docx::Document.open(@fixtures_path + '/internal-links.docx')
528+
end
529+
530+
it 'should not raise error' do
531+
expect { @doc.to_html }.to_not raise_error
532+
end
533+
end
525534
end

spec/fixtures/internal-links.docx

9.62 KB
Binary file not shown.

0 commit comments

Comments
 (0)