Sha256: 73d8b24367ae1fc76b166a0accf8c0c4e5f124edb267bf89b4dd25a41aa5f8e7
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
require 'bundler' require 'pry' Bundler.require require 'rspec/its' require 'active_record' require 'rack/test' require 'action_controller/metal/strong_parameters' require 'database_cleaner' require 'support/model_helpers' require 'support/muffle_helper' 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.include MuffleHelpers 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
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
granite-form-0.1.0 | spec/spec_helper.rb |
active_data-1.2.0 | spec/spec_helper.rb |
active_data-1.1.7 | spec/spec_helper.rb |