Skip to content

Commit

Permalink
update spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Sep 18, 2018
1 parent 2518b43 commit 8395693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/tasks/doi_rake_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
ENV['UNTIL_DATE'] = "2018-08-05"

let!(:doi) { create_list(:doi, 10) }
let(:output) { "Queued indexing for DOIs updated from 2018-01-01 until 2018-08-31.\n" }
let(:output) { "Queued indexing for DOIs updated from 2018-01-04 until 2018-08-05.\n" }

it "prerequisites should include environment" do
expect(subject.prerequisites).to include("environment")
Expand All @@ -21,7 +21,7 @@
it "should enqueue an DoiIndexByDayJob" do
expect {
capture_stdout { subject.invoke }
}.to change(enqueued_jobs, :size).by(243)
}.to change(enqueued_jobs, :size).by(214)
expect(enqueued_jobs.last[:job]).to be(DoiIndexByDayJob)
end
end
Expand Down

0 comments on commit 8395693

Please sign in to comment.