summaryrefslogtreecommitdiff
path: root/doc/development
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-08-25 04:44:51 +0000
committerNick Thomas <nick@gitlab.com>2018-08-25 04:44:51 +0000
commit26ea5437f17ce2a6546fbfd644b93b7f18896783 (patch)
tree7f1ddd0846d9515a7bb1714711be88d4b633f01e /doc/development
parentee2aaa29dd483a237b91aa46e9000e085b912e1e (diff)
parent7b7969bf15894660411d8ea53f4fa5101c6571b4 (diff)
downloadgitlab-ce-26ea5437f17ce2a6546fbfd644b93b7f18896783.tar.gz
Merge branch '50345-hashed-storage-feature-flag' into 'master'
Feature flag to disable Hashed Storage migration when renaming a repository Closes #50345 See merge request gitlab-org/gitlab-ce!21291
Diffstat (limited to 'doc/development')
-rw-r--r--doc/development/feature_flags.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/development/feature_flags.md b/doc/development/feature_flags.md
index 09ea8c05be6..702caacc74f 100644
--- a/doc/development/feature_flags.md
+++ b/doc/development/feature_flags.md
@@ -57,3 +57,15 @@ end
Features that are developed and are intended to be merged behind a feature flag
should not include a changelog entry. The entry should be added in the merge
request removing the feature flags.
+
+### Specs
+
+In the test environment `Feature.enabled?` is stubbed to always respond to `true`,
+so we make sure behavior under feature flag doesn't go untested in some non-specific
+contexts.
+
+If you need to test the feature flag in a different state, you need to stub it with:
+
+```ruby
+stub_feature_flags(my_feature_flag: false)
+```