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