diff options
author | Rémy Coutable <remy@rymai.me> | 2018-04-10 14:22:19 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-04-10 16:38:40 +0300 |
commit | b11e887582882bcf9c1787e18ccf34747ae50f91 (patch) | |
tree | 3eebc627a3cceceb4454664be059e2b75c7dd071 /lib/rspec_flaky/config.rb | |
parent | 9bb97abf041d7aa17fc72b850ecc1695c1bad0f5 (diff) |
Improve the architecture of RspecFlaky classes by introducing a new RspecFlaky::Report class
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/rspec_flaky/config.rb')
-rw-r--r-- | lib/rspec_flaky/config.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rspec_flaky/config.rb b/lib/rspec_flaky/config.rb index a17ae55910e..06e96f969f1 100644 --- a/lib/rspec_flaky/config.rb +++ b/lib/rspec_flaky/config.rb @@ -1,9 +1,7 @@ -require 'json' - module RspecFlaky class Config def self.generate_report? - ENV['FLAKY_RSPEC_GENERATE_REPORT'] == 'true' + !!(ENV['FLAKY_RSPEC_GENERATE_REPORT'] =~ /1|true/) end def self.suite_flaky_examples_report_path |