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
nbudin-castronaut-0.7.5 vendor/sinatra/compat/sym_params_test.rb
akamai_bookmarklet-0.1.2 vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/sym_params_test.rb
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/sinatra-0.9.4/compat/sym_params_test.rb
akamai_bookmarklet-0.1.1 vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/sym_params_test.rb
akamai_bookmarklet-0.1.0 vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/sym_params_test.rb
middleman-0.12.2 lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/sym_params_test.rb
middleman-0.12.1 lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/sym_params_test.rb
middleman-0.12.0.pre3 lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/sym_params_test.rb
middleman-0.12.0.pre2 lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/sym_params_test.rb
middleman-0.12.0.pre lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/sym_params_test.rb
middleman-0.10.17 vendor/gems/gems/sinatra-0.9.4/compat/sym_params_test.rb
middleman-0.10.16 vendor/gems/gems/sinatra-0.9.4/compat/sym_params_test.rb
middleman-0.10.15 vendor/gems/gems/sinatra-0.9.4/compat/sym_params_test.rb
middleman-0.10.14 vendor/gems/gems/sinatra-0.9.4/compat/sym_params_test.rb
sinatra-0.9.4 compat/sym_params_test.rb
sinatra-0.9.0.4 compat/sym_params_test.rb
sinatra-0.9.1 compat/sym_params_test.rb
sinatra-0.9.0.5 compat/sym_params_test.rb
sinatra-0.9.0.1 compat/sym_params_test.rb
sinatra-0.9.0.3 compat/sym_params_test.rb