Sha256: 618468591cfd0f126fc17c07fd9face57776e3f3a43012f6a1900e4fb196985f
Contents?: true
Size: 310 Bytes
Versions: 3
Compression:
Stored size: 310 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sinatra-0.2.0 | test/sym_params_test.rb |
sinatra-0.2.2 | test/sym_params_test.rb |
sinatra-0.2.1 | test/sym_params_test.rb |