summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-12-15 19:56:15 +0000
committerRobert Speicher <robert@gitlab.com>2017-12-15 19:56:15 +0000
commitb540b987648ae6e24bbbc01a7773b2e3209a47b0 (patch)
tree904ace3d5524eef227976910e136f98925e62371 /features
parent95f5a525b5a729725d6b559101026b8f39c9c39d (diff)
parent02994fbe7715ef4539f720b6d395eeb9a3d71f14 (diff)
downloadgitlab-ce-b540b987648ae6e24bbbc01a7773b2e3209a47b0.tar.gz
Merge branch 'no-ivar-in-modules' into 'master'
Add cop to make sure we don't use ivar in a module See merge request gitlab-org/gitlab-ce!12800
Diffstat (limited to 'features')
-rw-r--r--features/support/env.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/support/env.rb b/features/support/env.rb
index 996bb8922e8..91a92314959 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -42,11 +42,11 @@ module StdoutReporterWithScenarioLocation
# Override the standard reporter to show filename and line number next to each
# scenario for easy, focused re-runs
def before_scenario_run(scenario, step_definitions = nil)
- @max_step_name_length = scenario.steps.map(&:name).map(&:length).max if scenario.steps.any?
+ @max_step_name_length = scenario.steps.map(&:name).map(&:length).max if scenario.steps.any? # rubocop:disable Gitlab/ModuleWithInstanceVariables
name = scenario.name
# This number has no significance, it's just to line things up
- max_length = @max_step_name_length + 19
+ max_length = @max_step_name_length + 19 # rubocop:disable Gitlab/ModuleWithInstanceVariables
out.puts "\n #{'Scenario:'.green} #{name.light_green.ljust(max_length)}" \
" # #{scenario.feature.filename}:#{scenario.line}"
end