Sha256: a2935c52a528618abc01c79287dee47c27c6d4d89a55e023d3d2e56d9c6b214d
Contents?: true
Size: 1.8 KB
Versions: 5
Compression:
Stored size: 1.8 KB
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe Dor::Workflow::Response::Process do let(:parent) { Dor::Workflow::Response::Workflow.new(xml: xml) } subject(:instance) { parent.process_for_recent_version(name: 'start-assembly') } describe '#pid' do subject { instance.pid } let(:xml) do <<~XML <workflow repository="dor" objectId="druid:mw971zk1113" id="assemblyWF"> <process name="start-assembly"> </workflow> XML end it { is_expected.to eq 'druid:mw971zk1113' } end describe '#workflow_name' do subject { instance.workflow_name } let(:xml) do <<~XML <workflow repository="dor" objectId="druid:mw971zk1113" id="assemblyWF"> <process name="start-assembly"> </workflow> XML end it { is_expected.to eq 'assemblyWF' } end describe '#repository' do before do allow(Deprecation).to receive(:warn) end subject { instance.repository } let(:xml) do <<~XML <workflow repository="dor" objectId="druid:mw971zk1113" id="assemblyWF"> <process name="start-assembly"> </workflow> XML end it { is_expected.to eq 'dor' } end describe '#name' do subject { instance.name } let(:xml) do <<~XML <workflow repository="dor" objectId="druid:mw971zk1113" id="assemblyWF"> <process name="start-assembly"> </workflow> XML end it { is_expected.to eq 'start-assembly' } end describe '#lane_id' do subject { instance.lane_id } let(:xml) do <<~XML <workflow repository="dor" objectId="druid:mw971zk1113" id="assemblyWF"> <process name="start-assembly" laneId="default"> </workflow> XML end it { is_expected.to eq 'default' } end end
Version data entries
5 entries across 5 versions & 1 rubygems