Sha256: e8819f3e3fb87d6fb195e669fbbe7a4f6e2e62f3c940d78ccb50f6aa9e4e9b6c

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

require 'spec_helper'

describe AngellistApi::Client::StatusUpdates do
  before(:each) do
    @client = AngellistApi::Client.new
  end
  
  describe "#get_status_updates" do
    it "should get 1/status_updates" do
      options = { :some => "options" }
      @client.expects(:get).with("1/status_updates", options, :format => :json, :phoenix => true).returns("success")
      @client.get_status_updates(options).should == "success"
    end
  end
  
  describe "#post_status_updates" do
    it "should post to 1/status_updates" do
      options = { :some => "options" }
      @client.expects(:post).with("1/status_updates", options, :format => :json, :phoenix => true).returns("success")
      @client.post_status_updates(options).should == "success"
    end
  end
  
  describe "#delete_status_updates" do
    it "should delete 1/status_updates/<id>" do
      id = "123"
      @client.expects(:delete).with("1/status_updates/#{id}", :format => :json, :phoenix => true).returns("success")
      @client.delete_status_updates(id).should == "success"
    end
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
angellist_api-1.0.1 spec/lib/angellist_api/client/status_updates_spec.rb
angellist_api-0.1.2 spec/lib/angellist_api/client/status_updates_spec.rb
angellist_api-1.0.0 spec/lib/angellist_api/client/status_updates_spec.rb