spec/isodoc/blocks_spec.rb in isodoc-1.0.7 vs spec/isodoc/blocks_spec.rb in isodoc-1.0.8
- old
+ new
@@ -35,11 +35,11 @@
</note>
</foreword></preface>
</iso-standard>
INPUT
<html xmlns:epub="http://www.idpf.org/2007/ops" lang="en">
- <head/>
+ <head><style/></head>
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p> </p>
</div>
<p><br clear="all" class="section"/></p>
@@ -193,11 +193,11 @@
</note>
</foreword></preface>
</iso-standard>
INPUT
<html xmlns:epub="http://www.idpf.org/2007/ops" lang="en">
- <head/>
+ <head><style/></head>
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p> </p>
</div>
<p><br clear="all" class="section"/></p>
@@ -281,11 +281,11 @@
</html>
OUTPUT
end
it "processes figures (Word)" do
- expect(xmlpp(strip_guid(IsoDoc::WordConvert.new({}).convert("test", <<~"INPUT", true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
+ expect(xmlpp(strip_guid(IsoDoc::WordConvert.new({}).convert("test", <<~"INPUT", true).sub(/['"][^'".]+\.gif['"]/, "'_.gif'")))).to be_equivalent_to xmlpp(<<~"OUTPUT")
<iso-standard xmlns="http://riboseinc.com/isoxml">
<preface><foreword>
<figure id="figureA-1">
<name>Split-it-right sample divider</name>
<image src="rice_images/rice_image1.png" height="20" width="30" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f0" mimetype="image/png" alt="alttext" title="titletext"/>
@@ -305,11 +305,11 @@
</figure>
</foreword></preface>
</iso-standard>
INPUT
<html xmlns:epub="http://www.idpf.org/2007/ops" lang="en">
- <head/>
+ <head><style/></head>
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p> </p>
</div>
<p><br clear="all" class="section"/></p>
@@ -319,11 +319,11 @@
<h1 class="ForewordTitle">Foreword</h1>
<div id="figureA-1" class="figure">
<img src="rice_images/rice_image1.png" height="20" width="30" alt="alttext" title="titletext"/>
<img src="rice_images/rice_image1.png"/>
- <img src="test_images/_.gif"/>
+ <img src="_.gif"/>
<a href="#_" class="TableFootnoteRef">a</a><aside><div id="ftn_"><span><span id="_" class="TableFootnoteRef">a</span><span style="mso-tab-count:1">  </span></span>
<p id="_">The time <span class="stem">(#(t_90)#)</span> was estimated to be 18,2 min for this example.</p>
</div></aside>
<p><b>Key</b></p><table class="dl"><tr><td valign="top" align="left"><p align="left" style="margin-left:0pt;text-align:left;">A</p></td><td valign="top"><p>B</p></td></tr></table>
<p class="FigureTitle" style="text-align:center;">Figure 1 — Split-it-right sample divider</p></div>
@@ -447,11 +447,11 @@
</sourcecode>
</foreword></preface>
</iso-standard>
INPUT
<html xmlns:epub="http://www.idpf.org/2007/ops" lang="en">
- <head/>
+ <head><style/></head>
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p> </p>
</div>
<p>
@@ -666,10 +666,10 @@
<p align="justify">Justify</p>
</foreword></preface>
</iso-standard>
INPUT
<html xmlns:epub="http://www.idpf.org/2007/ops" lang="en">
- <head/>
+ <head><style/></head>
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p> </p>
</div>
<p><br clear="all" class="section"/></p>