1 require File.dirname(__FILE__) + '/../../../spec_helper'
3 require File.dirname(__FILE__) + '/fixtures/http_server'
5 describe "Net::HTTP#lock" do
7 NetHTTPSpecs.start_server
11 NetHTTPSpecs.stop_server
15 @http = Net::HTTP.start("localhost", 3333)
18 it "sends a LOCK request to the passed path and returns the response" do
19 response = @http.lock("/request", "test=test")
20 response.should be_kind_of(Net::HTTPResponse)
21 response.body.should == "Request type: LOCK"