Sha256: b1d0ed2d9c77b233ce4e5e0bd05ab18471037cae66fb2dd3068e51e23953196f
Contents?: true
Size: 880 Bytes
Versions: 11
Compression:
Stored size: 880 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe Dor::Workflow::Client::LifecycleRoutes do let(:mock_requestor) { instance_double(Dor::Workflow::Client::Requestor) } let(:routes) { described_class.new(requestor: mock_requestor) } describe '#milestones' do let(:ng_xml) { Nokogiri::XML(xml) } let(:xml) do '<?xml version="1.0" encoding="UTF-8"?><lifecycle objectId="druid:gv054hp4128"><milestone date="2012-01-26T21:06:54-0800" version="2">published</milestone></lifecycle>' end before do allow(routes).to receive(:query_lifecycle).and_return(ng_xml) end subject(:milestones) { routes.milestones('dor', 'druid:gv054hp4128') } it 'includes the version in with the milestones' do expect(milestones.first[:milestone]).to eq('published') expect(milestones.first[:version]).to eq('2') end end end
Version data entries
11 entries across 11 versions & 1 rubygems