Sha256: 2d16405d70e9a3b7a49b64e1d53cec4e49b4b49a48404dd41ea30af6ffbcf57a
Contents?: true
Size: 305 Bytes
Versions: 2
Compression:
Stored size: 305 Bytes
Contents
require File.dirname(__FILE__) + '/helper' context "Symbol Params" do setup do Sinatra.application = nil end specify "should be accessable as Strings or Symbols" do get '/' do params[:foo] + params['foo'] end get_it '/', :foo => "X" assert_equal('XX', body) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra-0.9.6 | compat/sym_params_test.rb |
sinatra-0.9.5 | compat/sym_params_test.rb |