Sha256: 889c64f591625291825669f41163a4ac529f79404624bf236c4c515e73ca4588
Contents?: true
Size: 606 Bytes
Versions: 2
Compression:
Stored size: 606 Bytes
Contents
require 'active_record' require 'database_cleaner' require 'rspec/its' # Initialize AR connection ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:" # Require dynamic_attribute_declaration gem require 'dynamic_attribute_declaration' # Load and build test models require 'support/models' # Configure RSpec RSpec.configure do |config| config.before(:suite) do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) end config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dynamic_attribute_declaration-0.0.11 | spec/spec_helper.rb |
dynamic_attribute_declaration-0.0.10 | spec/spec_helper.rb |