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
relevance-castronaut-0.2.0 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.2.5 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.3.0 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.3.5 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.3.6 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.4.1 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.4.2 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.4.3 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.4.4 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.4.5 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.4.6 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.5.0 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.5.1 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.5.2 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.5.3 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.5.4 vendor/sinatra/test/sym_params_test.rb
relevance-castronaut-0.6.0 vendor/sinatra/compat/sym_params_test.rb
relevance-castronaut-0.6.1 vendor/sinatra/compat/sym_params_test.rb
relevance-castronaut-0.7.4 vendor/sinatra/compat/sym_params_test.rb
relevance-castronaut-0.7.5 vendor/sinatra/compat/sym_params_test.rb