From a113d896e7a2c3378fb397bd27acc7213b8bae06 Mon Sep 17 00:00:00 2001 From: Grant Burgess Date: Mon, 13 Jan 2020 12:53:29 +1000 Subject: [PATCH] Cleared arguements before tests run --- spec/spec_helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e61b93639..55ae66644 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -20,6 +20,7 @@ Dir['spec/support/*.rb'].each do |f| end ENV['RACK_ENV'] ||= 'test' +ARGV = [] ActiveRecord::Base.logger = nil OTR::ActiveRecord.migrations_paths = [File.join('core', 'main', 'ar-migrations')] @@ -33,6 +34,8 @@ end RSpec.configure do |config| config.disable_monkey_patching! config.bisect_runner = :shell + config.order = :random + Kernel.srand config.seed config.include Rack::Test::Methods config.expect_with :rspec do |c| c.syntax = :expect