Cleanup requires for Merb param parser
This commit is contained in:
parent
d4fb7bbd0a
commit
98dc231945
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user