Sha256: 1f0cba0ef21faef72a686df5d219ba3e07c9d7e8baa4d5e7f303f0b845908a98

Contents?: true

Size: 306 Bytes

Versions: 88

Compression:

Stored size: 306 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

88 entries across 88 versions & 14 rubygems

Version Path
3mix-castronaut-0.5.0.2 vendor/sinatra/test/sym_params_test.rb
Syd-sinatra-0.3.2 test/sym_params_test.rb
Syd-sinatra-0.9.0.2 compat/sym_params_test.rb
Syd-sinatra-0.9.0.4 compat/sym_params_test.rb
adamwiggins-sinatra-0.8.9 compat/sym_params_test.rb
bmizerany-sinatra-0.3.2 test/sym_params_test.rb
bmizerany-sinatra-0.8.10 compat/sym_params_test.rb
bmizerany-sinatra-0.8.9 compat/sym_params_test.rb
bmizerany-sinatra-0.9.0.2 compat/sym_params_test.rb
bmizerany-sinatra-0.9.0.4 compat/sym_params_test.rb
bmizerany-sinatra-0.9.0.5 compat/sym_params_test.rb
bmizerany-sinatra-0.9.0 compat/sym_params_test.rb
bmizerany-sinatra-0.9.1 compat/sym_params_test.rb
darkhelmet-sinatra-0.9.0.5 compat/sym_params_test.rb
darkhelmet-sinatra-0.9.1.1 compat/sym_params_test.rb
darkhelmet-sinatra-0.9.1 compat/sym_params_test.rb
masover-castronaut-0.4.4.4 vendor/sinatra/test/sym_params_test.rb
masover-castronaut-0.4.4.5 vendor/sinatra/test/sym_params_test.rb
masover-castronaut-0.5.0.1 vendor/sinatra/test/sym_params_test.rb
p8-castronaut-0.6.1.1 vendor/sinatra/compat/sym_params_test.rb