Cleanup requires for Merb param parser

This commit is contained in:
Bryan Helmkamp 2008-11-03 20:11:26 -05:00
parent d4fb7bbd0a
commit 98dc231945
3 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,6 @@
require "cgi" require "cgi"
require "webrat/core_extensions/blank" require "webrat/core_extensions/blank"
require "webrat/core_extensions/nil_to_param" require "webrat/core_extensions/nil_to_param"
require "webrat/merb/param_parser"
module Webrat module Webrat
class Field class Field
@ -119,7 +118,8 @@ module Webrat
elsif defined?(ActionController::AbstractRequest) elsif defined?(ActionController::AbstractRequest)
ActionController::AbstractRequest ActionController::AbstractRequest
else else
Webrat::ParamParser #used for Merb require "webrat/merb/param_parser"
Webrat::MerbParamParser
end end
end end

View File

@ -1,5 +1,12 @@
require "webrat/core" require "webrat/core"
require "cgi"
gem "extlib"
require "extlib"
require "merb-core"
HashWithIndifferentAccess = Mash
module Webrat module Webrat
class Session class Session
include Merb::Test::MakeRequest include Merb::Test::MakeRequest

View File

@ -1,12 +1,5 @@
require "cgi"
gem "extlib"
require "extlib"
require "merb-core"
HashWithIndifferentAccess = Mash
module Webrat module Webrat
class ParamParser class MerbParamParser
def self.parse_query_parameters(query_string) def self.parse_query_parameters(query_string)
Merb::Parse.query(query_string) Merb::Parse.query(query_string)
end end