spec/spec_helper.rb in fx-0.8.0 vs spec/spec_helper.rb in fx-0.9.0

- old
+ new

@@ -2,11 +2,16 @@ require "database_cleaner" require File.expand_path("../dummy/config/environment", __FILE__) Dir["spec/support/**/*.rb"].sort.each { |file| load file } +$LOAD_PATH.unshift File.expand_path("../lib", __dir__) +require "fx" + RSpec.configure do |config| config.order = "random" + config.disable_monkey_patching! + DatabaseCleaner.strategy = :transaction config.around(:each, db: true) do |example| DatabaseCleaner.start example.run