Cleared arguements before tests run

This commit is contained in:
Grant Burgess
2020-01-13 12:53:29 +10:00
parent d0dced8848
commit a113d896e7

View File

@@ -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