Created
August 3, 2010 00:28
-
-
Save andyferra/505582 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV["RAILS_ENV"] ||= 'test' | |
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) | |
require 'spec/autorun' | |
require 'spec/rails' | |
require File.dirname(__FILE__) + '/factories' | |
# Requires supporting files with custom matchers and macros, etc, | |
# in ./support/ and its subdirectories. | |
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} | |
Webrat.configure do |config| | |
config.mode = :rails | |
end | |
Spec::Runner.configure do |config| | |
config.use_transactional_fixtures = true | |
config.include(Webrat::Matchers, :type => [:integration]) | |
# config.include(ActionController::UrlWriter) uncomment for blah_path support | |
# config.include(ActionView::Helpers::NumberHelper) uncomment for number_to_currency et al. support | |
end | |
ActionController::Integration::Session.send :include, Spec::Matchers | |
ActiveSupport::Deprecation.silenced = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment