Sha256: 9bfb31fd1635eabdd47487fd249b91c0e2e373b9bd4adafb86f9c178d5caa941

Contents?: true

Size: 236 Bytes

Versions: 5

Compression:

Stored size: 236 Bytes

Contents

require 'active_record'
require 'assert'

module Ardb

  class DbTests < Assert::Context
    around do |block|
      ActiveRecord::Base.transaction do
        block.call
        raise ActiveRecord::Rollback
      end
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ardb-0.28.3 lib/ardb/db_tests.rb
ardb-0.28.2 lib/ardb/db_tests.rb
ardb-0.28.1 lib/ardb/db_tests.rb
ardb-0.28.0 lib/ardb/db_tests.rb
ardb-0.27.3 lib/ardb/db_tests.rb