summaryrefslogtreecommitdiff
path: root/lib/rspec_flaky/flaky_example.rb
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2019-02-28 19:57:34 +0100
committerToon Claes <toon@gitlab.com>2019-02-28 19:57:34 +0100
commit62d7990b9bb30cf33ed87017c5c633d1cccc75c2 (patch)
treec3e1b69c58a412ba1c6f50a0337a23d9f9d6e1a4 /lib/rspec_flaky/flaky_example.rb
parentf6453eca992a9c142268e78ac782cef98110d183 (diff)
downloadgitlab-ce-tc-standard-gem.tar.gz
Ran standardrb --fix on the whole codebasetc-standard-gem
Inspired by https://twitter.com/searls/status/1101137953743613952 I decided to try https://github.com/testdouble/standard on our codebase. It's opinionated, but at least it's a _standard_.
Diffstat (limited to 'lib/rspec_flaky/flaky_example.rb')
-rw-r--r--lib/rspec_flaky/flaky_example.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/rspec_flaky/flaky_example.rb b/lib/rspec_flaky/flaky_example.rb
index da5dbf06bc9..e4484dde6a5 100644
--- a/lib/rspec_flaky/flaky_example.rb
+++ b/lib/rspec_flaky/flaky_example.rb
@@ -23,8 +23,8 @@ module RspecFlaky
self.flaky_reports += 1
self.last_attempts_count = last_attempts_count if last_attempts_count
- if ENV['CI_PROJECT_URL'] && ENV['CI_JOB_ID']
- self.last_flaky_job = "#{ENV['CI_PROJECT_URL']}/-/jobs/#{ENV['CI_JOB_ID']}"
+ if ENV["CI_PROJECT_URL"] && ENV["CI_JOB_ID"]
+ self.last_flaky_job = "#{ENV["CI_PROJECT_URL"]}/-/jobs/#{ENV["CI_JOB_ID"]}"
end
end
@@ -32,7 +32,8 @@ module RspecFlaky
super.merge(
first_flaky_at: first_flaky_at,
last_flaky_at: last_flaky_at,
- last_flaky_job: last_flaky_job)
+ last_flaky_job: last_flaky_job
+ )
end
end
end