Sha256: 439605faea3b75283e58e1ce50ad1d97d943cdaf28827fc2e2b4e9f24ba85ba4
Contents?: true
Size: 418 Bytes
Versions: 2
Compression:
Stored size: 418 Bytes
Contents
require 'support/reconnectdb' require 'support/fixtures' reconnectdb RSpec.configure do |config| config.around(:example, {:rollback => true}) do |example| ActiveRecord::Base.logger.level = 2 unless ActiveRecord::Base.logger.nil? ActiveRecord::Base.transaction do example.run if ActiveRecord::Base.connection.open_transactions > 0 raise ActiveRecord::Rollback end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet-herald-0.8.1 | spec/support/active_record.rb |
puppet-herald-0.8.0 | spec/support/active_record.rb |