webrat/spec/spec_helper.rb

24 lines
527 B
Ruby
Raw Normal View History

2008-03-02 20:14:52 +00:00
require "rubygems"
2008-04-23 14:54:07 +00:00
require "spec"
2008-03-02 20:14:52 +00:00
# gem install redgreen for colored test output
begin require "redgreen" unless ENV['TM_CURRENT_LINE']; rescue LoadError; end
require "mocha"
require "active_support"
2008-04-04 13:19:14 +00:00
silence_warnings do
require "action_controller"
require "action_controller/integration"
end
2008-03-02 20:14:52 +00:00
require File.expand_path(File.dirname(__FILE__) + "/../lib/webrat")
class ActionController::Integration::Session
def flunk(message)
raise message
end
2008-04-23 14:54:07 +00:00
end
Spec::Runner.configure do |config|
config.mock_with :mocha
2008-03-02 20:14:52 +00:00
end