29 lines
685 B
Ruby
29 lines
685 B
Ruby
ENV["RAILS_ENV"] = "test"
|
|
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
|
load File.expand_path(File.dirname(__FILE__) + "/../db/schema.rb")
|
|
require 'test_help'
|
|
|
|
# begin
|
|
# require "redgreen"
|
|
# rescue MissingSourceFile
|
|
# end
|
|
|
|
$LOAD_PATH.unshift File.dirname(__FILE__) + "/../../../../lib"
|
|
require "webrat"
|
|
|
|
Webrat.configure do |config|
|
|
config.mode = ENV['WEBRAT_INTEGRATION_MODE'].to_sym
|
|
config.selenium_browser_key = '*safari'
|
|
end
|
|
|
|
ActionController::Base.class_eval do
|
|
def perform_action
|
|
perform_action_without_rescue
|
|
end
|
|
end
|
|
Dispatcher.class_eval do
|
|
def self.failsafe_response(output, status, exception = nil)
|
|
raise exception
|
|
end
|
|
end
|