mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
60d50062d7
I can't stand this shit anymore.
19 lines
306 B
Ruby
19 lines
306 B
Ruby
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
|
|
|