Permalink
Browse files

When in :rack mode, extend IntegrationTest if loaded

  • Loading branch information...
brynary committed Jul 26, 2010
1 parent fbc2c73 commit caa6870cdefeffcf8e19251e7a278608b4264af8
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/webrat/integrations/rack.rb
@@ -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.