diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-24 16:26:24 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-24 16:26:24 -0700 |
commit | c21fcdcf837f43ae61f2be7592d8aab001c51b25 (patch) | |
tree | 8b4c1f2f522581645d0f0a9915b309714ba834c8 /spec/spec_helper.rb | |
parent | 72a857a7822a308498d15064390ed2f8153f4db0 (diff) | |
download | rails-c21fcdcf837f43ae61f2be7592d8aab001c51b25.tar.gz rails-c21fcdcf837f43ae61f2be7592d8aab001c51b25.tar.bz2 rails-c21fcdcf837f43ae61f2be7592d8aab001c51b25.zip |
deleting lots of unused files
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4ea3071515..0031f6903f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -5,27 +5,14 @@ require 'arel' require 'support/matchers/be_like' require 'support/check' -Dir[File.join(File.dirname(__FILE__),'support/shared/*')].each { |f| require f } - -if adapter = ENV['ADAPTER'] - require "support/connections/#{adapter}_connection.rb" -end +require 'support/fake_record' +require 'support/shared/tree_manager_shared' Spec::Runner.configure do |config| config.include Matchers config.include Check - if defined?(ActiveRecord::Base) - tmp = File.expand_path('../../tmp', __FILE__) - - FileUtils.mkdir_p(tmp) - ActiveRecord::Base.logger = Logger.new("#{tmp}/debug.log") - ActiveRecord::Base.establish_connection("unit") - - require "support/schemas/#{ENV['ADAPTER']}_schema.rb" - - config.before do - Arel::Table.engine = Arel::Sql::Engine.new(ActiveRecord::Base) - end + config.before do + Arel::Table.engine = Arel::Sql::Engine.new(FakeRecord::Base) end end |