# Configure Rails Environment ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" require "rails/generators/test_case" Rails.backtrace_cleaner.remove_silencers! # Load database schema ActiveRecord::Base.configurations = YAML.load(File.read(File.expand_path("../dummy/config/database.yml", __FILE__))) ActiveRecord::Base.establish_connection("test") ActiveRecord::Migration.verbose = false load(File.expand_path("../dummy/db/schema.rb", __FILE__)) require 'capybara' Capybara.register_driver :rack_test_the_other do |app| Capybara::RackTest::Driver.new(app) end # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }