Created
September 22, 2009 02:21
-
-
Save mrmemes-eth/190739 to your computer and use it in GitHub Desktop.
necessary configurations for using RSpec with Webrat for integration tests
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
require 'webrat' | |
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} | |
Webrat.configure do |config| | |
config.mode = :rails | |
config.open_error_files = false # optional, but keeps me sane | |
end | |
Spec::Runner.configure do |config| | |
config.include(Webrat::Matchers, :type => [:integration]) | |
end | |
class ActionController::Integration::Session; include Spec::Matchers; end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment