Skip to content

Commit

Permalink
Fix Rubocop violations in Promotion Spec
Browse files Browse the repository at this point in the history
Prefer 1.day syntax
  • Loading branch information
filippoliverani committed Nov 20, 2019
1 parent 35fb8b1 commit df5a01e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/spec/models/spree/promotion_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -434,12 +434,12 @@
end

context 'when expires_at date is not already reached' do
let(:expires_at) { Time.current + 1.days }
let(:expires_at) { Time.current + 1.day }
it { is_expected.to be_falsey }
end

context 'when expires_at date is in the past' do
let(:expires_at) { Time.current - 1.days }
let(:expires_at) { Time.current - 1.day }
it { is_expected.to be_truthy }
end
end
Expand All @@ -454,12 +454,12 @@
end

context 'when expires_at date is not already reached' do
let(:expires_at) { Time.current + 1.days }
let(:expires_at) { Time.current + 1.day }
it { is_expected.to be_truthy }
end

context 'when expires_at date is in the past' do
let(:expires_at) { Time.current - 1.days }
let(:expires_at) { Time.current - 1.day }
it { is_expected.to be_falsey }
end
end
Expand Down

0 comments on commit df5a01e

Please sign in to comment.