Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 01:10:28 +01:00
instantiate mocked up interface for more tests
Dieser Commit ist enthalten in:
Ursprung
6aa68ebd5f
Commit
c0082b82b9
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
|
@ -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
|
||||||
|
|
Laden …
In neuem Issue referenzieren