Sha256: a1bf560f9501126d36ec954870875fc301d086dd555410a9255e88d23c31eb4b

Contents?: true

Size: 432 Bytes

Versions: 1

Compression:

Stored size: 432 Bytes

Contents

require 'active_record'
require 'spec_helper'

ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
ActiveRecord::Migration.create_table :users do |t|
  t.timestamps
end

RSpec.configure do |config|
  config.around do |example|
    ActiveRecord::Base.transaction do
      example.run
      raise ActiveRecord::Rollback
    end
  end
end

I18n.load_path = Dir['spec/*.yml']
I18n.backend.load_translations

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
at_most-0.0.1 spec/active_record_spec_helper.rb