Sha256: 9c43c04c761af7365189d2455875b884a0ecd01524d4a49af2b28dceaa756ad2
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'active_record' require 'database_cleaner' require 'pusher' Pusher.app_id = '123456' Pusher.secret = 'FAKE' Pusher.key = 'FAKE' require 'pusherable' ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:') load File.dirname(__FILE__) + '/support/schema.rb' load File.dirname(__FILE__) + '/support/models.rb' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pusherable-1.0.4 | spec/spec_helper.rb |