diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-07-13 09:58:05 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-07-13 13:00:34 +0200 |
commit | 3ee48e422defaedd69946c607bd8d3672e510375 (patch) | |
tree | 55f59787d6726a1506b81c2e1335931b5fad9543 /spec/spec_helper.rb | |
parent | 3c197e74827b99a524a70f05fb4e955a036172b5 (diff) | |
download | gitlab-ce-3ee48e422defaedd69946c607bd8d3672e510375.tar.gz |
Enable all feature flags by default in specsbvl-enable-features-in-test
Otherwise some features would go untested in non-specific contexts
I did need to disable the
`gitlab_git_diff_size_limit_increase`-feature in some specs since we
depend on diffs being expandable while the file we are testing on is
smaller than the increased limit.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3c142764e28..b8ed1e18de0 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -59,6 +59,7 @@ RSpec.configure do |config| config.include ApiHelpers, :api config.include Gitlab::Routing, type: :routing config.include MigrationsHelpers, :migration + config.include StubFeatureFlags config.infer_spec_type_from_file_location! @@ -79,6 +80,8 @@ RSpec.configure do |config| config.before(:example) do # Skip pre-receive hook check so we can use the web editor and merge. allow_any_instance_of(Gitlab::Git::Hook).to receive(:trigger).and_return([true, nil]) + # Enable all features by default for testing + allow(Feature).to receive(:enabled?) { true } end config.before(:example, :request_store) do |