From 62d7990b9bb30cf33ed87017c5c633d1cccc75c2 Mon Sep 17 00:00:00 2001 From: Toon Claes Date: Thu, 28 Feb 2019 19:57:34 +0100 Subject: Ran standardrb --fix on the whole codebase 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_. --- lib/rspec_flaky/flaky_example.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/rspec_flaky/flaky_example.rb') 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 -- cgit v1.2.1