spec/spec_helper.rb in sequel_vault-0.5.1 vs spec/spec_helper.rb in sequel_vault-0.5.2

- old
+ new

@@ -1,23 +1,22 @@ -require "bundler" +require 'bundler' Bundler.require -require "simplecov" +require 'simplecov' SimpleCov.start do add_filter('spec/') end -require "sequel" -require "sequel_vault" +require 'sequel' +require 'sequel_vault' RSpec.configure do |config| config.order = 'random' config.before(:suite) do - Sequel::Model.plugin(:schema) Sequel.connect('sqlite:/') end - config.around(:each) do |example| + config.around do |example| Sequel::Model.db.transaction(rollback: :always) { example.run } end end