spec/spec_helper.rb in jn_services-1.0.7 vs spec/spec_helper.rb in jn_services-1.0.8

- old
+ new

@@ -20,15 +20,15 @@ # rubocop:disable ClassVars module SpecHelper @@pids = [] def self.etcd_binary - if File.exists? './etcd/etcd' + if File.exist? './etcd/etcd' './etcd/etcd' elsif !!ENV['ETCD_BIN'] ENV['ETCD_BIN'] - elsif File.exists? '/usr/local/bin/etcd' + elsif File.exist? '/usr/local/bin/etcd' '/usr/local/bin/etcd' else fail 'etcd binary not found., you need to set ETCD_BIN' end end @@ -103,11 +103,12 @@ config.after(:suite) do Etcd::SpecHelper.stop_etcd_servers end end + # Use color in STDOUT - config.color_enabled = true + # config.color_enabled = true # Use color not only in STDOUT but also in pagers and files config.tty = true # Use the specified formatter