```ruby
require 'spec'

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require "rubygems"

gem "activerecord", " ~> 2.3.5"

require "active_record"
require "logger"

ActiveRecord::Base.logger = Logger.new("spec/test.log")
ActiveRecord::Base.logger.level = Logger::DEBUG

ActiveRecord::Schema.verbose = false

Spec::Runner.configure do |config|

  config.before(:all) do
    ActiveRecord::Base.establish_connection(
    :adapter => 'sqlite3', 
    :database => 'spec/test.sqlite'
    )
  end

  config.after(:all) do
    ActiveRecord::Base.clear_active_connections!
  end

end
```

Allow testing against different versions of activerecord.
user
```ruby
require 'spec'

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require "rubygems"

ENV["AR_VERSION"] ||= "~> 2.3.5"
gem "activerecord", ENV["AR_VERSION"]

require "active_record"
require "logger"

ActiveRecord::Base.logger = Logger.new("spec/test.log")
ActiveRecord::Base.logger.level = Logger::DEBUG

ActiveRecord::Schema.verbose = false

Spec::Runner.configure do |config|

  config.before(:all) do
    ActiveRecord::Base.establish_connection(
    :adapter => 'sqlite3', 
    :database => 'spec/test.sqlite'
    )
  end

  config.after(:all) do
    ActiveRecord::Base.clear_active_connections!
  end

end
```
assistant