spec/rapidash/http_client_spec.rb in rapidash-0.0.1 vs spec/rapidash/http_client_spec.rb in rapidash-0.0.2
- old
+ new
@@ -28,24 +28,9 @@
it "should create a Faraday object" do
subject.connection.class.should eql(Faraday::Connection)
end
end
- describe ".get" do
- it "should call request" do
- subject.should_receive(:request).with(:get, "foo", {})
- subject.get("foo")
- end
- end
-
- describe ".get" do
- it "should call request" do
- subject.should_receive(:request).with(:post, "foo", {})
- subject.post("foo")
- end
- end
-
-
describe ".request" do
let!(:valid_response) { OpenStruct.new(:status => "200")}
let!(:redirect_response) { OpenStruct.new(:status => "301", :headers => {"location" => "http://example.com/redirect"})}