Sha256: df48225b188135b7f266a4b97e4fd195271f2018ce004ced20daac7ed10611aa
Contents?: true
Size: 919 Bytes
Versions: 1
Compression:
Stored size: 919 Bytes
Contents
require 'bundler' Bundler.require require 'rspec/its' require 'active_record' require 'database_cleaner' require 'support/model_helpers' ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') ActiveRecord::Base.logger = Logger.new('/dev/null') ActiveRecord::Schema.define do create_table :users do |t| t.column :email, :string t.column :projects, :text t.column :profile, :text end create_table :authors do |t| t.column :name, :string end end RSpec.configure do |config| config.mock_with :rspec config.order = :random config.run_all_when_everything_filtered = true config.filter_run focus: true config.include ModelHelpers config.before(:suite) do DatabaseCleaner.clean_with :truncation DatabaseCleaner.strategy = :transaction end config.before do DatabaseCleaner.start end config.after do DatabaseCleaner.clean end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_data-1.0.0 | spec/spec_helper.rb |