Sha256: 8a49c5b776897889e9cf558192f3f691cc912d7e64b982c2142343813c8f7795

Contents?: true

Size: 161 Bytes

Versions: 3

Compression:

Stored size: 161 Bytes

Contents

class Minitest::Test
  def wrap_in_db_transaction(&block)
    ActiveRecord::Base.transaction do
      yield
      raise ActiveRecord::Rollback
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
forty_facets-0.2.1 test/test_helper.rb
forty_facets-0.2 test/test_helper.rb
forty_facets-0.1.9.1 test/test_helper.rb