-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed researcher from tests. datacite/volpino#72
- Loading branch information
Martin Fenner
committed
Sep 29, 2019
1 parent
11bd2b8
commit c10e1f4
Showing
5 changed files
with
77 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
require 'rails_helper' | ||
# require 'rails_helper' | ||
|
||
describe OrcidAutoUpdateByIdJob, type: :job do | ||
let(:researcher) { create(:researcher) } | ||
subject(:job) { OrcidAutoUpdateByIdJob.perform_later(researcher.uid) } | ||
# describe OrcidAutoUpdateByIdJob, type: :job do | ||
# let(:user) { create(:user) } | ||
# subject(:job) { OrcidAutoUpdateByIdJob.perform_later(user.uid) } | ||
|
||
it 'queues the job' do | ||
expect { job }.to have_enqueued_job(OrcidAutoUpdateByIdJob) | ||
.on_queue("test_lupo_background") | ||
end | ||
# it 'queues the job' do | ||
# expect { job }.to have_enqueued_job(OrcidAutoUpdateByIdJob) | ||
# .on_queue("test_lupo_background") | ||
# end | ||
|
||
after do | ||
clear_enqueued_jobs | ||
clear_performed_jobs | ||
end | ||
end | ||
# after do | ||
# clear_enqueued_jobs | ||
# clear_performed_jobs | ||
# end | ||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters