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
sinatra-0.9.0.2 compat/sym_params_test.rb
sinatra-0.9.0 compat/sym_params_test.rb
sinatra-0.3.3 test/sym_params_test.rb
sinatra-0.3.0 test/sym_params_test.rb
sinatra-0.3.2 test/sym_params_test.rb
sinatra-0.3.1 test/sym_params_test.rb
sinatra-0.9.1.1 compat/sym_params_test.rb
sinatra-0.9.2 compat/sym_params_test.rb