Commit 0263a894 authored by rpereira2's avatar rpereira2

Add example of disabling feature flag for specific actor

parent fb8b597c
...@@ -511,6 +511,14 @@ Feature.enabled?(:ci_live_trace) # => false ...@@ -511,6 +511,14 @@ Feature.enabled?(:ci_live_trace) # => false
Feature.enabled?(:ci_live_trace, gate) # => true Feature.enabled?(:ci_live_trace, gate) # => true
``` ```
You can also disable a feature flag for a specific actor:
```ruby
gate = stub_feature_flag_gate('CustomActor')
stub_feature_flags(ci_live_trace: false, thing: gate)
```
### Controlling feature flags engine in tests ### Controlling feature flags engine in tests
Our Flipper engine in the test environment works in a memory mode `Flipper::Adapters::Memory`. Our Flipper engine in the test environment works in a memory mode `Flipper::Adapters::Memory`.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment