Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-21 17:00:29 +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
|
||||
|
||||
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
|
||||
|
|
Laden …
In neuem Issue referenzieren