From c0082b82b98af71db53b58d5c7ef5c59609edc8c Mon Sep 17 00:00:00 2001 From: merefield Date: Thu, 28 Sep 2023 12:13:45 +0100 Subject: [PATCH] instantiate mocked up interface for more tests --- spec/plugin_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/plugin_helper.rb b/spec/plugin_helper.rb index 53b7173c..23e1f2f3 100644 --- a/spec/plugin_helper.rb +++ b/spec/plugin_helper.rb @@ -9,11 +9,13 @@ def get_wizard_fixture(path) end def enable_subscription(type) + define_client_classes CustomWizard::Subscription.stubs("#{type}?".to_sym).returns(true) CustomWizard::Subscription.any_instance.stubs("#{type}?".to_sym).returns(true) end def disable_subscriptions + define_client_classes %w[ standard business