test/test_epub3maker.rb in review-4.2.0 vs test/test_epub3maker.rb in review-5.0.0
- old
+ new
@@ -629,11 +629,11 @@
<p><span class="equation"><math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mfrac><mrow><mo stretchy='false'>-</mo><mi>b</mi><mo stretchy='false'>±</mo><msqrt><mrow><msup><mi>b</mi><mn>2</mn></msup><mo stretchy='false'>-</mo><mn>4</mn><mi>a</mi><mi>c</mi></mrow></msqrt></mrow><mrow><mn>2</mn><mi>a</mi></mrow></mfrac></math></span></p>
</div>
</body>
</html>
EOT
- File.open(path, 'w') { |f| f.write(html) }
+ File.write(path, html)
assert_equal ['mathml'], epubmaker.detect_properties(path)
end
end
def test_detect_mathml_ns
@@ -654,10 +654,10 @@
<p><span class="equation"><m:math xmlns:m='http://www.w3.org/1998/Math/MathML' display='inline'><m:mfrac><m:mrow><m:mo stretchy='false'>-</m:mo><m:mi>b</m:mi><m:mo stretchy='false'>±</m:mo><m:msqrt><m:mrow><m:msup><m:mi>b</m:mi><m:mn>2</m:mn></m:msup><m:mo stretchy='false'>-</m:mo><m:mn>4</m:mn><m:mi>a</m:mi><m:mi>c</m:mi></m:mrow></m:msqrt></m:mrow><m:mrow><m:mn>2</m:mn><m:mi>a</m:mi></m:mrow></m:mfrac></m:math></span></p>
</div>
</body>
</html>
EOT
- File.open(path, 'w') { |f| f.write(html) }
+ File.write(path, html)
assert_equal ['mathml'], epubmaker.detect_properties(path)
end
end
def test_image_size