summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorAlessandro Desantis <desa.alessandro@gmail.com>2020-06-17 17:31:19 +0200
committerAlessandro Desantis <desa.alessandro@gmail.com>2020-06-17 17:31:19 +0200
commit8ce962d6a151ac7a25676caa1d6d11a2e58c790b (patch)
tree698eb59a05c0ca52709b4a33f9d442cd0cbf8102 /spec/models
parentfef8a08dce5db651fefa764fc4cdef4751c5b4be (diff)
Fix flaky time comparison spec for Subscription#skip
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/solidus_subscriptions/subscription_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/solidus_subscriptions/subscription_spec.rb b/spec/models/solidus_subscriptions/subscription_spec.rb
index 3e5ee9f..2f6976f 100644
--- a/spec/models/solidus_subscriptions/subscription_spec.rb
+++ b/spec/models/solidus_subscriptions/subscription_spec.rb
@@ -44,11 +44,11 @@ RSpec.describe SolidusSubscriptions::Subscription, type: :model do
end
describe '#skip' do
- subject { subscription.skip }
+ subject { subscription.skip&.to_date }
let(:total_skips) { 0 }
let(:successive_skips) { 0 }
- let(:expected_date) { 1.month.from_now.beginning_of_minute }
+ let(:expected_date) { 1.month.from_now.to_date }
let(:subscription) do
create(