Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7ea36023f9
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (21 sloc) 0.702 kb
# Configure Rails Envinronment
ENV["RAILS_ENV"] = "test"
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require "rails/test_help"
require "webrat"
ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.default_url_options[:host] = "test.com"
Webrat.configure do |config|
config.mode = :rails
config.open_error_files = false
end
# Add support to load paths so we can overwrite broken webrat setup
$:.unshift File.expand_path('../support', __FILE__)
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
class ActiveSupport::TestCase
setup do
wait
RailsMetrics.set_store { Metric }
end
end
Jump to Line
Something went wrong with that request. Please try again.