spec/grendel/linked_document_spec.rb in grendel-ruby-0.1.1 vs spec/grendel/linked_document_spec.rb in grendel-ruby-0.1.2
- old
+ new
@@ -9,10 +9,10 @@
@base_uri = "#{@user_id}:#{@password}@grendel/users/#{@user_id}/linked-documents"
end
describe "delete" do
before do
- stub_json_request(:delete, @base_uri + "/bob/document.txt", "", :status => "204 No Content")
+ stub_json_request(:delete, @base_uri + "/bob/document.txt", "", :status => [204, "No Content"])
@linked_document = Grendel::LinkedDocument.new(@user, :name => "document.txt", :owner => {:id => "bob"})
end
it "should send a properly-formatted request" do
@linked_document.delete