Sha256: 7bd6a78a521406f3062ac8458d38d067ae7be2fc8de7d38c22949663da50e88e
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 Bytes
Contents
require 'puppet-herald/database' require 'active_record' require 'stringio' # silence the output $stdout = StringIO.new # from migrator PuppetHerald::Database.dbconn = 'sqlite3://:memory:' ActiveRecord::Base.establish_connection(PuppetHerald::Database.spec) ActiveRecord::Migrator.up "db/migrate" $stdout = STDOUT RSpec.configure do |config| config.around(:example, {:rollback => true}) 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.1 | spec/support/active_record.rb |