Flaky Spec Fix:Set Expired Listing to 2 days ago (#10327)
This commit is contained in:
parent
7520caf0e2
commit
7dcf2ad97e
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ RSpec.describe Listings::ExpireOldListingsWorker, type: :worker do
|
|||
it "expires only old listings" do
|
||||
Timecop.freeze do
|
||||
bumped_listing = create(:listing, bumped_at: 41.days.ago, published: true)
|
||||
expired_listing = create(:listing, expires_at: 1.day.ago, published: true)
|
||||
expired_listing = create(:listing, expires_at: 2.days.ago, published: true)
|
||||
valid_listing = create(:listing, expires_at: 1.week.from_now, published: true)
|
||||
|
||||
worker.perform
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue