spec/isodoc/table_spec.rb in isodoc-0.6.0 vs spec/isodoc/table_spec.rb in isodoc-0.6.1

- old
+ new

@@ -1,10 +1,10 @@ require "spec_helper" RSpec.describe IsoDoc do it "processes IsoXML tables" do - expect(IsoDoc::Convert.new({}).convert_file(<<~"INPUT", "test", true)).to be_equivalent_to <<~"OUTPUT" + expect(IsoDoc::Convert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT" <iso-standard xmlns="http://riboseinc.com/isoxml"> <preface> <foreword> <table id="tableD-1"> <name>Repeatability and reproducibility of husked rice yield</name> @@ -121,10 +121,10 @@ </html> OUTPUT end it "processes IsoXML tables (Word)" do - expect(IsoDoc::WordConvert.new({}).convert_file(<<~"INPUT", "test", true)).to be_equivalent_to <<~"OUTPUT" + expect(IsoDoc::WordConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT" <iso-standard xmlns="http://riboseinc.com/isoxml"> <preface> <foreword> <table id="tableD-1"> <name>Repeatability and reproducibility of husked rice yield</name>