Sha256: 1a8cbf2c23dc02c7874816992498f55b686bbdf75e071dd1a28b1f87da20dd10
Contents?: true
Size: 719 Bytes
Versions: 12
Compression:
Stored size: 719 Bytes
Contents
require 'spec_helper' RSpec.describe CurationConcerns::Workflow::ActivateObject do let(:work) { create(:generic_work) } let(:user) { create(:user) } describe ".call" do it "makes it active" do if RDF::VERSION.to_s < '2.0' expect { described_class.call(target: work, comment: "A pleasant read", user: user) } .to change { work.state } .from(nil) .to(instance_of(ActiveTriples::Resource)) else expect { described_class.call(target: work, comment: "A pleasant read", user: user) } .to change { work.state } .from(nil) .to(::RDF::URI('http://fedora.info/definitions/1/0/access/ObjState#active')) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems