Skip to content

Commit

Permalink
Appease rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhoads committed Oct 16, 2023
1 parent 3690f85 commit 74383df
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions spec/models/doi_related_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
require "rails_helper"

describe Doi, type: :model, vcr: true, elasticsearch: true do

describe "views" do
let(:client) { create(:client) }
let(:doi) { create(:doi, client: client, aasm_state: "findable") }
Expand Down Expand Up @@ -127,21 +126,21 @@
end
end

describe "versions" do
let(:client) { create(:client) }
let(:doi) { create(:doi, client: client, aasm_state: "findable") }
let(:target_doi) { create(:doi, client: client, aasm_state: "findable") }
let!(:version_event) { create(:event_for_datacite_versions, subj_id: "https://doi.org/#{doi.doi}", obj_id: "https://doi.org/#{target_doi.doi}") }

it "has versions" do
expect(doi.versions.count).to eq(1)
expect(doi.version_ids.count).to eq(1)
expect(doi.version_count).to eq(1)

version_id = doi.version_ids.first
expect(version_id).to eq(target_doi.doi.downcase)
end
end
describe "versions" do
let(:client) { create(:client) }
let(:doi) { create(:doi, client: client, aasm_state: "findable") }
let(:target_doi) { create(:doi, client: client, aasm_state: "findable") }
let!(:version_event) { create(:event_for_datacite_versions, subj_id: "https://doi.org/#{doi.doi}", obj_id: "https://doi.org/#{target_doi.doi}") }

it "has versions" do
expect(doi.versions.count).to eq(1)
expect(doi.version_ids.count).to eq(1)
expect(doi.version_count).to eq(1)

version_id = doi.version_ids.first
expect(version_id).to eq(target_doi.doi.downcase)
end
end

describe "version of" do
let(:client) { create(:client) }
Expand Down

0 comments on commit 74383df

Please sign in to comment.