Skip to content

Commit

Permalink
When in :rack mode, extend IntegrationTest if loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
brynary committed Jul 26, 2010
1 parent fbc2c73 commit caa6870
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/webrat/integrations/rack.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if defined?(ActionController::IntegrationTest)
module ActionController #:nodoc:
IntegrationTest.class_eval do
include Rack::Test::Methods
include Webrat::Methods
include Webrat::Matchers
end
end
end

0 comments on commit caa6870

Please sign in to comment.