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
path: root/qa/spec
diff options
context:
space:
mode:
authorPeter Leitzen <pleitzen@gitlab.com>2019-07-23 01:29:14 +0300
committerDan Davison <ddavison@gitlab.com>2019-07-23 01:29:14 +0300
commit510d03fec26ac64c1ec643f492676c02f4099a56 (patch)
tree44a4800645c504a6428cdf8f3d19aff23294dc76 /qa/spec
parent5595c9ded4d3e019c346f18de0f8509ded4a1b5d (diff)
QA: Prefer `flat_map` over `map` + `flatten`
Diffstat (limited to 'qa/spec')
-rw-r--r--qa/spec/specs/runner_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/spec/specs/runner_spec.rb b/qa/spec/specs/runner_spec.rb
index 6c533c6dc7d..3d98f03a982 100644
--- a/qa/spec/specs/runner_spec.rb
+++ b/qa/spec/specs/runner_spec.rb
@@ -125,9 +125,9 @@ describe QA::Specs::Runner do
end
def excluded_feature_tags_except(tag)
- QA::Runtime::Env.supported_features.except(tag).map do |tag, _|
+ QA::Runtime::Env.supported_features.except(tag).flat_map do |tag, _|
['--tag', "~requires_#{tag}"]
- end.flatten
+ end
end
def expect_rspec_runner_arguments(arguments)