spec/http/request_stream_spec.rb in http-0.5.0.pre vs spec/http/request_stream_spec.rb in http-0.5.0.pre2
- old
+ new
@@ -1,26 +1,25 @@
require 'spec_helper'
-describe Http::RequestStream do
+describe HTTP::RequestStream do
describe "#initalize" do
def construct(body)
- Http::RequestStream.new(nil, body, [], "")
+ HTTP::RequestStream.new(nil, body, [], "")
end
it "doesn't throw on a nil body" do
- expect {construct []}.to_not raise_error(ArgumentError)
+ expect {construct []}.not_to raise_error
end
it "doesn't throw on a String body" do
- expect {construct "string body"}.to_not raise_error(ArgumentError)
+ expect {construct "string body"}.not_to raise_error
end
it "doesn't throw on an Enumerable body" do
- expect {construct ["bees", "cows"]}.to_not raise_error(ArgumentError)
+ 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(ArgumentError)
-
+ expect {construct true}.to raise_error
end
end
end