diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-03-11 23:22:26 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-03-11 23:22:26 -0700 |
commit | 12ef6a5ad15078d2f634d3c6cdfc453848f90122 (patch) | |
tree | 426f7fee7383bda64c050bc125733ba48e592d18 /spec/spec_helper.rb | |
parent | a29ceffc9476c99ff02f0617d2e38627c526bac2 (diff) | |
download | rails-12ef6a5ad15078d2f634d3c6cdfc453848f90122.tar.gz rails-12ef6a5ad15078d2f634d3c6cdfc453848f90122.tar.bz2 rails-12ef6a5ad15078d2f634d3c6cdfc453848f90122.zip |
refactored session's interaction with engine/connection
- follows law of demeter
- Table.engine uses AR::Base adapter
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6d00064e81..01a703a7d4 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -29,6 +29,6 @@ Spec::Runner.configure do |config| config.include(BeLikeMatcher, HashTheSameAsMatcher) config.mock_with :rr config.before do - ActiveRelation::Table.engine = ActiveRecord::Base.connection + ActiveRelation::Table.engine = ActiveRelation::Engine.new(ActiveRecord::Base) end end
\ No newline at end of file |