Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-07-13 10:58:05 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2017-07-13 14:00:34 +0300
commit3ee48e422defaedd69946c607bd8d3672e510375 (patch)
tree55f59787d6726a1506b81c2e1335931b5fad9543 /spec/features/projects
parent3c197e74827b99a524a70f05fb4e955a036172b5 (diff)
Enable all feature flags by default in specs
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/features/projects')
-rw-r--r--spec/features/projects/diffs/diff_show_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/features/projects/diffs/diff_show_spec.rb b/spec/features/projects/diffs/diff_show_spec.rb
index b528b283495..4baccb24806 100644
--- a/spec/features/projects/diffs/diff_show_spec.rb
+++ b/spec/features/projects/diffs/diff_show_spec.rb
@@ -110,6 +110,10 @@ feature 'Diff file viewer', :js, feature: true do
context 'binary file that appears to be text in the first 1024 bytes' do
before do
+ # The file we're visiting is smaller than 10 KB and we want it collapsed
+ # so we need to disable the size increase feature.
+ stub_feature_flags(gitlab_git_diff_size_limit_increase: false)
+
visit_commit('7b1cf4336b528e0f3d1d140ee50cafdbc703597c')
end