spec/spec_helper.rb in paraduct-0.0.1.beta16 vs spec/spec_helper.rb in paraduct-0.0.1.beta17
- old
+ new
@@ -16,20 +16,26 @@
require 'paraduct'
require 'paraduct/cli'
require 'rspec/collection_matchers'
require 'rspec/temp_dir'
require 'rspec/its'
+require 'rspec/retry'
require 'pry'
is_verbose = ENV["VERBOSE"].present?
def spec_dir
Pathname(File.dirname(__FILE__))
end
Dir["#{spec_dir}/support/**/*.rb"].sort.each { |f| require f }
+# rspec-retry option
+def with_retry
+ {retry: 3, retry_wait: 10}
+end
+
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# The generated `.rspec` file contains `--require spec_helper` which will cause this
# file to always be loaded, without a need to explicitly require it in any files.
#
@@ -116,9 +122,11 @@
# as the one that triggered the failure.
Kernel.srand config.seed
=end
config.order = :random
+
+ config.verbose_retry = true
config.before do
unless is_verbose
# quiet all logs
Paraduct::ColoredLabelLogger::SEVERITIES.each do |severity|