Sha256: 459fcc57799f6eafb359258ed8c9e23fcac920837b6084760e8cab1b221a1849
Contents?: true
Size: 580 Bytes
Versions: 3
Compression:
Stored size: 580 Bytes
Contents
describe Riak do require 'riak/core_ext/to_param' it "should do param conversion correctly" do expect({ :name => 'David', :nationality => 'Danish' }.to_param).to eq("name=David&nationality=Danish") end # Based on the activesupport implementation. # https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/object/to_param.rb it "should do param conversion correctly with a namespace" do expect({ :name => 'David', :nationality => 'Danish' }.to_param('user')).to eq("user%5Bname%5D=David&user%5Bnationality%5D=Danish") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
riak-client-2.0.0 | spec/riak/core_ext/to_param_spec.rb |
riak-client-2.0.0.rc2 | spec/riak/core_ext/to_param_spec.rb |
riak-client-2.0.0.rc1 | spec/riak/core_ext/to_param_spec.rb |