Sha256: 810e5694d622fa81cccefc29ffd613761fa3435dfd9043c190997e32a38f7181

Contents?: true

Size: 646 Bytes

Versions: 4

Compression:

Stored size: 646 Bytes

Contents

require 'simple_bioc'
require 'test_xml/spec'
describe "File Check" do
  it "should load XML files successfully" do
    Dir["./xml/*.xml"].each do |file_path|
      puts file_path
      collection = SimpleBioC.from_xml(file_path)
      output = SimpleBioC.to_xml(collection)
      expected = File.read(file_path)
      expect(output).to equal_xml(expected)
    end
  end

  it "should fix location problem" do
    col1 = SimpleBioC.from_xml("./xml/merge/10366597_error.xml")
    output = SimpleBioC.to_xml(col1)
    File.write("./xml/merge/output_10366597.xml", output)
    col5 = SimpleBioC.from_xml("./xml/merge/output_10366597.xml")
  end 
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple_bioc-0.0.24 spec/file_check_spec.rb
simple_bioc-0.0.23 spec/file_check_spec.rb
simple_bioc-0.0.22 spec/file_check_spec.rb
simple_bioc-0.0.21 spec/file_check_spec.rb