Sha256: 37468f2384655b66e84284db7597361f2d6bc458304af6bd112206f4ed0d3dcb

Contents?: true

Size: 421 Bytes

Versions: 7

Compression:

Stored size: 421 Bytes

Contents

require "spec_helper"

describe Http2::UrlBuilder do
  context "#build" do
    it "builds correctly" do
      ub = Http2::UrlBuilder.new
      ub.protocol = "https"
      ub.host = "www.github.com"
      ub.port = "443"
      ub.path = "index.php"
      ub.params["test"] = "true"
      ub.params["test2"] = "false"

      ub.build.should eq "https://www.github.com:443/index.php?test=true&test2=false"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
http2-0.0.31 spec/http2/url_builder_spec.rb
http2-0.0.30 spec/http2/url_builder_spec.rb
http2-0.0.29 spec/http2/url_builder_spec.rb
http2-0.0.28 spec/http2/url_builder_spec.rb
http2-0.0.27 spec/http2/url_builder_spec.rb
http2-0.0.26 spec/http2/url_builder_spec.rb
http2-0.0.25 spec/http2/url_builder_spec.rb