Sha256: 04928c728d8e4509d2919fe6450cdc5943d05c31b82ec069f21d02fb8b7ff04a
Contents?: true
Size: 731 Bytes
Versions: 1
Compression:
Stored size: 731 Bytes
Contents
# 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 }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bbq-0.2.1 | test/test_helper.rb |