Sha256: 9f84a76b2daa0d95e067afa58ae13d5f7393a8f9274f67dd3e057d0d1fd5a261
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
require 'active_record' require 'stringio' # silence the output $stdout = StringIO.new # from migrator ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:" ActiveRecord::Migrator.up "db/migrate" $stdout = STDOUT RSpec.configure do |config| config.around do |example| ActiveRecord::Base.transaction do example.run raise ActiveRecord::Rollback end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-herald-0.1.0 | spec/support/active_record.rb |