require 'spec_helper'

describe 'UWDC::Mets' do
  before(:each) do
    @id = '33QOBSVPJLWEM8S'
  end

  it "should return METS" do
    expect(UWDC::Mets.new(@id)).to be_successful
  end
end
require 'spec_helper'
require 'uwdc'

describe 'UWDC::Mets' do
  before(:each) do
    @id = '33QOBSVPJLWEM8S'
  end

  context 'METS' do
    xml = UWDC::Mets.new(@id).xml
    it "should return a Nokogiri document" do
      expect(xml).to be_an_instance_of(Nokogiri::XML::Document)
    end
    
    it 'should have mods' do
      expect(xml.xpath('//mods')).to be_true
    end
  end
end
Add a couple METS parsing specs
Add a couple METS parsing specs
