From 3912fd28c6fac9b4b83acfb2238495fef183e564 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sun, 26 Aug 2018 09:11:07 +0200 Subject: [PATCH] update test. datacite/datacite#476 --- spec/models/client_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/models/client_spec.rb b/spec/models/client_spec.rb index 9a3f18893..8b139af3d 100644 --- a/spec/models/client_spec.rb +++ b/spec/models/client_spec.rb @@ -2,6 +2,7 @@ describe Client, type: :model do let(:provider) { create(:provider) } + let(:prefix) { create(:prefix, prefix: "10.5072") } let(:client) { create(:client, provider: provider) } let(:target) { create(:client, provider: provider, symbol: provider.symbol + ".TARGET") } @@ -26,12 +27,11 @@ end # describe "prefixes" do - # let(:client) { create(:client, provider: provider) } - # let!(:prefix) { create(:prefix, prefix: "10.5072") } - - # it "automatically adds 10.5072 prefix" do - # prefix = client.prefixes - # expect(client.prefixes.count).to eq(2) + # it "set_test_prefix" do + # provider_prefix = create(:provider_prefix, provider: provider, prefix: prefix) + # client.send(:set_test_prefix) + # expect(client.client_prefixes.first).to be_valid + # expect(client).to be_valid # end # end