Sha256: 0519c3a4ff232d9c045282d7d91d9efeeb278dca2077a6d960420ae568657f62
Contents?: true
Size: 650 Bytes
Versions: 2
Compression:
Stored size: 650 Bytes
Contents
module Ezid RSpec.describe Identifier do it "should handle CRUD operations" do # create (mint) identifier = described_class.create(shoulder: ARK_SHOULDER) expect(identifier.status).to eq("public") # update identifier.target = "http://example.com" identifier.save # retrieve identifier = described_class.find(identifier.id) expect(identifier.target).to eq("http://example.com") # delete identifier = described_class.create(shoulder: ARK_SHOULDER, status: "reserved") identifier.delete expect { described_class.find(identifier.id) }.to raise_error end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ezid-client-0.5.0 | spec/integration/identifier_spec.rb |
ezid-client-0.4.2 | spec/integration/identifier_spec.rb |