From d776ead94da0f6f12d765bc06f9ca7899c1b211b Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sat, 1 Jun 2019 09:28:45 +0200 Subject: [PATCH] fix specs. --- spec/requests/dois_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/dois_spec.rb b/spec/requests/dois_spec.rb index 89a310bea..9f0b78b3f 100644 --- a/spec/requests/dois_spec.rb +++ b/spec/requests/dois_spec.rb @@ -10,7 +10,7 @@ let!(:prefix) { create(:prefix, prefix: "10.14454") } let!(:client_prefix) { create(:client_prefix, client: client, prefix: prefix) } - let(:doi) { create(:doi, client: client, aasm_state: "findable") } + let(:doi) { create(:doi, client: client) } let(:bearer) { Client.generate_token(role_id: "client_admin", uid: client.symbol, provider_id: provider.symbol.downcase, client_id: client.symbol.downcase, password: client.password) } let(:headers) { { 'ACCEPT'=>'application/vnd.api+json', 'CONTENT_TYPE'=>'application/vnd.api+json', 'Authorization' => 'Bearer ' + bearer }}