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

View File

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