Cleanup requires for Merb param parser
This commit is contained in:
parent
d4fb7bbd0a
commit
98dc231945
@ -1,7 +1,6 @@
|
||||
require "cgi"
|
||||
require "webrat/core_extensions/blank"
|
||||
require "webrat/core_extensions/nil_to_param"
|
||||
require "webrat/merb/param_parser"
|
||||
|
||||
module Webrat
|
||||
class Field
|
||||
@ -119,7 +118,8 @@ module Webrat
|
||||
elsif defined?(ActionController::AbstractRequest)
|
||||
ActionController::AbstractRequest
|
||||
else
|
||||
Webrat::ParamParser #used for Merb
|
||||
require "webrat/merb/param_parser"
|
||||
Webrat::MerbParamParser
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1,5 +1,12 @@
|
||||
require "webrat/core"
|
||||
|
||||
require "cgi"
|
||||
gem "extlib"
|
||||
require "extlib"
|
||||
require "merb-core"
|
||||
|
||||
HashWithIndifferentAccess = Mash
|
||||
|
||||
module Webrat
|
||||
class Session
|
||||
include Merb::Test::MakeRequest
|
||||
|
@ -1,12 +1,5 @@
|
||||
require "cgi"
|
||||
gem "extlib"
|
||||
require "extlib"
|
||||
require "merb-core"
|
||||
|
||||
HashWithIndifferentAccess = Mash
|
||||
|
||||
module Webrat
|
||||
class ParamParser
|
||||
class MerbParamParser
|
||||
def self.parse_query_parameters(query_string)
|
||||
Merb::Parse.query(query_string)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user