Sha256: b209e2bbf46e881ca8e98fbedbb0289eb5073c9e23add24d5a38a200f5a1fbd6
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 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' Dir[File.join(__dir__, 'support', '**', '*.rb')].sort.each { |f| require f } 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
granite-form-0.2.0 | spec/spec_helper.rb |
granite-form-0.1.1 | spec/spec_helper.rb |