diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-06-09 13:38:15 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-06-09 13:38:15 -0700 |
commit | 9b8168d7a8b6fb4ba4aa6e9a68c4cb0e71c962cb (patch) | |
tree | d158087460a14f29203b14bf964fa6e5ba90c5cd /test/spec_request.rb | |
parent | cb6843848cea8a078ad86d6e7922b32c622142d1 (diff) | |
download | rack-9b8168d7a8b6fb4ba4aa6e9a68c4cb0e71c962cb.tar.gz |
remove hash and optional params
the parser class is required, and we don't need a hash
Diffstat (limited to 'test/spec_request.rb')
-rw-r--r-- | test/spec_request.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/spec_request.rb b/test/spec_request.rb index 6031dffc..3a1e17eb 100644 --- a/test/spec_request.rb +++ b/test/spec_request.rb @@ -152,7 +152,7 @@ describe Rack::Request do @params = Hash.new{|h,k| h[k.to_s] if k.is_a?(Symbol)} end end - parser = Rack::QueryParser.new(:params_class=>c) + parser = Rack::QueryParser.new(c) c = Class.new(Rack::Request) do define_method(:query_parser) do parser @@ -219,7 +219,7 @@ describe Rack::Request do @params = Hash.new{|h,k| h[k.to_s] if k.is_a?(Symbol)} end end - parser = Rack::QueryParser.new(:params_class=>c) + parser = Rack::QueryParser.new(c) c = Class.new(Rack::Request) do define_method(:query_parser) do parser |