Skip to content

Commit

Permalink
fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-sully committed Dec 21, 2023
1 parent c18f2c5 commit ae31ce5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/caffeinate/schedule_evaluator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
campaign
end

let(:sub) { create(:caffeinate_campaign_subscription, campaign: campaign) }
let(:sub) { create(:caffeinate_campaign_subscription, caffeinate_campaign: campaign) }

it 'succeeds' do
expect(sub.caffeinate_mailings.first.send_at.to_i).to eq 3.days.from_now.to_i
Expand All @@ -31,7 +31,7 @@
campaign
end

let(:sub) { create(:caffeinate_campaign_subscription, campaign: campaign) }
let(:sub) { create(:caffeinate_campaign_subscription, caffeinate_campaign: campaign) }

it 'succeeds' do
expect(sub.mailings.first.send_at.to_i).to eq 2.days.from_now.to_i
Expand All @@ -58,7 +58,7 @@ def five_pm(evaluator, mailing)
campaign
end

let(:sub) { create(:caffeinate_campaign_subscription, campaign: campaign) }
let(:sub) { create(:caffeinate_campaign_subscription, caffeinate_campaign: campaign) }

it 'succeeds' do
expect(sub.mailings.first.send_at.to_i).to eq(3.days.from_now.change(hour: 17, min: 2, sec: 2).to_i)
Expand Down

0 comments on commit ae31ce5

Please sign in to comment.