Adding require and switching to class_eval

This commit is contained in:
Bryan Helmkamp 2008-11-28 14:41:17 -05:00
parent 97bb64f4f9
commit ff2dd5de61
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
require "webrat"
require "action_controller/integration"
module Webrat
class RailsSession < Session #:nodoc:
@ -71,7 +72,7 @@ end
module ActionController #:nodoc:
module Integration #:nodoc:
class Session #:nodoc:
Session.class_eval do
unless instance_methods.include?("put_via_redirect")
require "webrat/rails/redirect_actions"
include Webrat::RedirectActions
@ -79,7 +80,7 @@ module ActionController #:nodoc:
end
end
class IntegrationTest
IntegrationTest.class_eval do
include Webrat::Methods
end
end