require 'rubygems' require 'bundler' Bundler.setup(:default, :test) # Embedded rails app setup ENV["RAILS_ENV"] = "test" require "rails_app/config/environment" Rails.backtrace_cleaner.remove_silencers! # Run any available migration ActiveRecord::Migration.verbose = false ActiveRecord::Migrator.migrate File.expand_path("../rails_app/db/migrate/", __FILE__) # Capybara setup require "capybara/rails" Capybara.default_driver = :rack_test Capybara.default_selector = :css require 'rails/test_help' require 'active_support/test_case' require 'hermes' # Support require 'support/models' require 'support/assertions' # Builders require 'builders' ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures/", __FILE__)