Sha256: bcded1695dde99b27f577151c01f33119ed1f4b149cec533ace558d279867e2f
Contents?: true
Size: 761 Bytes
Versions: 3
Compression:
Stored size: 761 Bytes
Contents
# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application Dummy::Application.initialize! ## Explicitly remove MySQL AR transactions during tests ## if Rails.env.test? # Force the loading of AR stuff ActiveRecord::Base.connection.execute('SELECT 1') if ENV['DB'] == 'mysql' # Remove transactions ActiveRecord::ConnectionAdapters::Mysql2Adapter.class_eval do def begin_db_transaction end def commit_db_transaction end end end if ENV['DB'] == 'postgresql' # Remove transactions ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.class_eval do def begin_db_transaction end def commit_db_transaction end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
quorum-0.8.2 | spec/dummy/config/environment.rb |
quorum-0.8.1 | spec/dummy/config/environment.rb |
quorum-0.8.0 | spec/dummy/config/environment.rb |