summaryrefslogtreecommitdiff
path: root/features/support/env.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-12-18 10:31:21 +0000
committerPhil Hughes <me@iamphill.com>2017-12-18 10:31:21 +0000
commit0a05d8740ac710b814a8f89cec3fc85d6fae6be9 (patch)
treee28de222d7d7334d6784be7f612e7763f016ae4a /features/support/env.rb
parenteaf2f48dc7db706fa1dea050543667f8cdebd4c4 (diff)
parentb4ea25cafa0c7768a8618c673f9a1830f27fc950 (diff)
downloadgitlab-ce-ph-es-notes-module.tar.gz
Merge branch 'master' into 'ph-es-notes-module'ph-es-notes-module
# Conflicts: # app/assets/javascripts/main.js
Diffstat (limited to 'features/support/env.rb')
-rw-r--r--features/support/env.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/features/support/env.rb b/features/support/env.rb
index 5962745d501..91a92314959 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -27,7 +27,7 @@ Spinach.hooks.before_run do
# web editor and merge
TestEnv.disable_pre_receive
- include FactoryGirl::Syntax::Methods
+ include FactoryBot::Syntax::Methods
include GitlabRoutingHelper
end
@@ -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