Sha256: a3e40b1af7c8566e0d3125523f0534ada018ebddf697d3665303a98e32c1755a

Contents?: true

Size: 527 Bytes

Versions: 18

Compression:

Stored size: 527 Bytes

Contents

require 'spec_helper'

describe Krikri::XmlParser do
  subject { Krikri::XmlParser.new(record) }
  let(:record) { build(:oai_dc_record) }

  it_behaves_like 'a parser'

  context 'with a root path' do
    subject { Krikri::XmlParser.new(record, '//oai_dc:dc') }

    it_behaves_like 'a parser'
  end
end

describe Krikri::XmlParser::Value do
  subject { Krikri::XmlParser.new(record).root }
  let(:record) { build(:oai_dc_record) }

  it_behaves_like 'a parser value'
  it_behaves_like 'a parser value that has attributes'
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
krikri-0.5.7 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.5.6 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.5.5 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.5.4 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.5.3 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.5.2 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.5.1 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.5.0 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.4.0 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.3.3 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.3.2 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.3.1 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.2.1 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.2.0 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.1.3 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.1.2 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.1.1 spec/lib/krikri/parsers/xml_parser_spec.rb
krikri-0.1.0 spec/lib/krikri/parsers/xml_parser_spec.rb