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