0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-19 15:21:11 +02:00

instantiate mocked up interface for more tests

Dieser Commit ist enthalten in:
merefield 2023-09-28 12:13:45 +01:00
Ursprung 6aa68ebd5f
Commit c0082b82b9

Datei anzeigen

@ -9,11 +9,13 @@ def get_wizard_fixture(path)
end end
def enable_subscription(type) def enable_subscription(type)
define_client_classes
CustomWizard::Subscription.stubs("#{type}?".to_sym).returns(true) CustomWizard::Subscription.stubs("#{type}?".to_sym).returns(true)
CustomWizard::Subscription.any_instance.stubs("#{type}?".to_sym).returns(true) CustomWizard::Subscription.any_instance.stubs("#{type}?".to_sym).returns(true)
end end
def disable_subscriptions def disable_subscriptions
define_client_classes
%w[ %w[
standard standard
business business