Sha256: 4adeeec5097a172722025327b293c95b67574aaf94fa079126b8af4250719c32

Contents?: true

Size: 473 Bytes

Versions: 31

Compression:

Stored size: 473 Bytes

Contents

require 'spec_helper'
y
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'
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
krikri-0.13.2 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.13.1 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.13.0 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.12.4 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.11.2 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.11.1 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.11.0 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.10.1 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.8.9 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.8.8 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.8.7 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.8.6 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.8.5 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.8.4 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.8.2 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.8.0 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.7.3 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.7.2 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.7.1 spec/lib/krikri/parsers/xml_parser_spec.rb~
krikri-0.6.0 spec/lib/krikri/parsers/xml_parser_spec.rb~