Module: Toggly::Rails::Testing::MinitestHelpers
- Includes:
- Toggly::Rails::Testing
- Defined in:
- lib/toggly/rails/testing.rb
Overview
Minitest helpers
Instance Method Summary collapse
-
#assert_feature_disabled(feature_key, msg = nil) ⇒ Object
Assert that a feature is disabled.
-
#assert_feature_enabled(feature_key, msg = nil) ⇒ Object
Assert that a feature is enabled.
Methods included from Toggly::Rails::Testing
#disable_feature, #enable_feature, #with_feature, #with_features
Instance Method Details
#assert_feature_disabled(feature_key, msg = nil) ⇒ Object
Assert that a feature is disabled
139 140 141 142 |
# File 'lib/toggly/rails/testing.rb', line 139 def assert_feature_disabled(feature_key, msg = nil) msg ||= "Expected feature '#{feature_key}' to be disabled" assert Toggly.disabled?(feature_key), msg end |
#assert_feature_enabled(feature_key, msg = nil) ⇒ Object
Assert that a feature is enabled
130 131 132 133 |
# File 'lib/toggly/rails/testing.rb', line 130 def assert_feature_enabled(feature_key, msg = nil) msg ||= "Expected feature '#{feature_key}' to be enabled" assert Toggly.enabled?(feature_key), msg end |