spec/integration/client_spec.rb in ezid-client-0.6.0 vs spec/integration/client_spec.rb in ezid-client-0.7.0
- old
+ new
@@ -1,11 +1,11 @@
module Ezid
RSpec.describe Client do
shared_examples "an EZID client" do |client|
it "should mint and modify" do
- minted = client.mint_identifier(ARK_SHOULDER, "_status: reserved")
+ minted = client.mint_identifier(TEST_ARK_SHOULDER, "_status: reserved")
expect(minted).to be_success
@id = minted.id
modified = client.modify_identifier(@id, "dc.title" => "Test")
expect(modified).to be_success
retrieved = client.get_identifier_metadata(@id)
@@ -44,10 +44,10 @@
end
end
describe "without a session" do
it "should send the user name and password" do
expect_any_instance_of(Net::HTTP::Post).to receive(:basic_auth).with(subject.user, subject.password).and_call_original
- subject.mint_identifier(ARK_SHOULDER)
+ subject.mint_identifier(TEST_ARK_SHOULDER)
end
end
end
describe "identifier lifecycle management" do