Skip to content

Commit

Permalink
comment test as it can only run with es
Browse files Browse the repository at this point in the history
  • Loading branch information
kjgarza committed Jan 29, 2020
1 parent 8cb1f0f commit 5fd0f79
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions spec/models/event_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,26 @@
expect(published).not_to eq(2011)
end

context "double_crossref_check", elasticsearch: true do
let(:provider) { create(:provider, symbol: "DATACITE") }
let(:client) { create(:client, provider: provider, symbol: ENV['MDS_USERNAME'], password: ENV['MDS_PASSWORD']) }
let!(:prefix) { create(:prefix, prefix: "10.14454") }
let!(:client_prefix) { create(:client_prefix, client: client, prefix: prefix) }
let!(:doi) { create(:doi, client: client) }
let!(:dois) { create_list(:doi, 10) }
let!(:events) { create_list(:event_for_datacite_related, 30, source_id: "datacite-crossref", obj_id: doi.doi) }
# context "double_crossref_check", elasticsearch: true do
# let(:provider) { create(:provider, symbol: "DATACITE") }
# let(:client) { create(:client, provider: provider, symbol: ENV['MDS_USERNAME'], password: ENV['MDS_PASSWORD']) }
# let!(:prefix) { create(:prefix, prefix: "10.14454") }
# let!(:client_prefix) { create(:client_prefix, client: client, prefix: prefix) }
# let!(:doi) { create(:doi, client: client) }
# let!(:dois) { create_list(:doi, 10) }
# let!(:events) { create_list(:event_for_datacite_related, 30, source_id: "datacite-crossref", obj_id: doi.doi) }

before do
Provider.import
Client.import
Doi.import
Event.import
sleep 3
end
# before do
# Provider.import
# Client.import
# Doi.import
# Event.import
# sleep 3
# end

it "check run" do
expect(Event.subj_id_check(cursor: [Event.minimum(:id),Event.maximum(:id)])).to eq(true)
end
end
# it "check run" do
# expect(Event.subj_id_check(cursor: [Event.minimum(:id),Event.maximum(:id)])).to eq(true)
# end
# end
end
end

0 comments on commit 5fd0f79

Please sign in to comment.