Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

When in :rack mode, extend IntegrationTest if loaded

  • Loading branch information...
commit caa6870cdefeffcf8e19251e7a278608b4264af8 1 parent fbc2c73
@brynary authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/webrat/integrations/rack.rb
View
9 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
Please sign in to comment.
Something went wrong with that request. Please try again.