Sha256: 767a595d07eb6b13a8c1998b47957d793140a7cafee74a65f97c3af828d6ef87
Contents?: true
Size: 454 Bytes
Versions: 30
Compression:
Stored size: 454 Bytes
Contents
require_relative "../spec_helper" describe "indifferent_params plugin" do it "allows indifferent access to request params via params method" do app(:indifferent_params) do |r| r.on do "#{params[:a]}/#{params[:b][0][:c]}" end end body('QUERY_STRING'=>'a=2&b[][c]=3', 'rack.input'=>StringIO.new).must_equal '2/3' body('REQUEST_METHOD'=>'POST', 'rack.input'=>StringIO.new('a=2&b[][c]=3')).must_equal '2/3' end end
Version data entries
30 entries across 30 versions & 1 rubygems