Sha256: 948b972445ab068d7697e4114fbf69c9626cff1e8bbca9264e9b5737267fac04

Contents?: true

Size: 347 Bytes

Versions: 10

Compression:

Stored size: 347 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'spec_helper')

describe Hash, "#to_http_str" do
  before do
    @params = {:page => 3, :per_page => 100}
  end
  it "should return http_parameter as String" do
    @params.to_http_str.should be_a(String)
    @params.to_http_str.should match(/^(page=3&per_page=100|per_page=100&page=3)$/)
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
nov-smartfm-0.4.0 spec/ext/hash_spec.rb
nov-smartfm-0.4.1 spec/ext/hash_spec.rb
nov-smartfm-1.0.0 spec/ext/hash_spec.rb
nov-smartfm-1.0.2 spec/ext/hash_spec.rb
smartfm-0.3.0 spec/ext/hash_spec.rb
smartfm-1.0.2 spec/ext/hash_spec.rb
smartfm-0.3.1 spec/ext/hash_spec.rb
smartfm-1.0.0 spec/ext/hash_spec.rb
smartfm-1.0.1 spec/ext/hash_spec.rb
smartfm-0.4.0 spec/ext/hash_spec.rb