Sha256: b1bbb80106cec66ef9635dca10e03f989d5e7f1ebb04900259f415b1e2120b64
Contents?: true
Size: 843 Bytes
Versions: 3
Compression:
Stored size: 843 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require "coveralls" Coveralls.wear! require "active_record" ActiveRecord::Base.establish_connection( adapter: "sqlite3", database: ":memory:" ) require 'simple_taggable' # Test Class class User < ActiveRecord::Base include SimpleTaggable end ActiveRecord::Migration.verbose = false ActiveRecord::Migrator.migrate File.expand_path("../db/migrate", __FILE__), nil I18n.enforce_available_locales = false # suppress warning require 'database_cleaner' require "shoulda-matchers" RSpec.configure do |config| config.order = :random 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simple_taggable-1.0.0 | spec/spec_helper.rb |
simple_taggable-0.0.2 | spec/spec_helper.rb |
simple_taggable-0.0.1 | spec/spec_helper.rb |