Skip to content

Commit

Permalink
update test. datacite/datacite#476
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Aug 26, 2018
1 parent 51c1763 commit 3912fd2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/models/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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") }

Expand All @@ -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

Expand Down

0 comments on commit 3912fd2

Please sign in to comment.