summaryrefslogtreecommitdiff
path: root/spec/models/solidus_subscriptions/subscription_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/solidus_subscriptions/subscription_spec.rb')
-rw-r--r--spec/models/solidus_subscriptions/subscription_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/models/solidus_subscriptions/subscription_spec.rb b/spec/models/solidus_subscriptions/subscription_spec.rb
index e2e73d7..38b430c 100644
--- a/spec/models/solidus_subscriptions/subscription_spec.rb
+++ b/spec/models/solidus_subscriptions/subscription_spec.rb
@@ -91,16 +91,16 @@ RSpec.describe SolidusSubscriptions::Subscription, type: :model do
end
around do |e|
- successive_skip_limit = SolidusSubscriptions::Config.maximum_successive_skips
- total_skip_limit = SolidusSubscriptions::Config.maximum_total_skips
+ successive_skip_limit = SolidusSubscriptions.configuration.maximum_successive_skips
+ total_skip_limit = SolidusSubscriptions.configuration.maximum_total_skips
- SolidusSubscriptions::Config.maximum_successive_skips = 1
- SolidusSubscriptions::Config.maximum_total_skips = 1
+ SolidusSubscriptions.configuration.maximum_successive_skips = 1
+ SolidusSubscriptions.configuration.maximum_total_skips = 1
Timecop.freeze { e.run }
- SolidusSubscriptions::Config.maximum_successive_skips = successive_skip_limit
- SolidusSubscriptions::Config.maximum_total_skips = total_skip_limit
+ SolidusSubscriptions.configuration.maximum_successive_skips = successive_skip_limit
+ SolidusSubscriptions.configuration.maximum_total_skips = total_skip_limit
end
context 'when the successive skips have been exceeded' do