Sha256: cb93ecade2713f2d81ff400ba9d2f60e20983098c6153a5df6c29d073d99099c
Contents?: true
Size: 621 Bytes
Versions: 3
Compression:
Stored size: 621 Bytes
Contents
require 'spec_helper' describe HTTP::RequestStream do describe "#initalize" do def construct(body) HTTP::RequestStream.new(nil, body, [], "") end it "doesn't throw on a nil body" do expect {construct []}.not_to raise_error end it "doesn't throw on a String body" do expect {construct "string body"}.not_to raise_error end it "doesn't throw on an Enumerable body" do expect {construct ["bees", "cows"]}.not_to raise_error end it "does throw on a body that isn't string, enumerable or nil" do expect {construct true}.to raise_error end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
http-0.5.1 | spec/http/request_stream_spec.rb |
http-0.5.0 | spec/http/request_stream_spec.rb |
http-0.5.0.pre2 | spec/http/request_stream_spec.rb |