Sha256: 919d66829fd384ffc4fb500da21cdfd0ad175f34c21173c95d6f2849c8cdcd3e
Contents?: true
Size: 766 Bytes
Versions: 1
Compression:
Stored size: 766 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "Grendel::Document" do before do @client = Grendel::Client.new("http://grendel") @user_id = "alice" @password = "s3kret" @user = Grendel::User.new(@client, :id => @user_id, :password => @password) @base_uri = "#{@user_id}:#{@password}@grendel/users/#{@user_id}/documents" end describe "delete" do before do stub_json_request(:delete, @base_uri + "/document.txt", "", :status => "204 No Content") @document = Grendel::Document.new(@user, :name => "document.txt") end it "should send a properly-formatted request" do @document.delete request(:delete, @base_uri + "/document.txt").should have_been_made.once end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grendel-ruby-0.1.1 | spec/grendel/document_spec.rb |