Sha256: 90742362c5085774c381652262eb8291e7646a18c2410fbec21002c7f39f0739

Contents?: true

Size: 939 Bytes

Versions: 7

Compression:

Stored size: 939 Bytes

Contents

require 'spec_helper'

describe AngellistApi::Client::StatusUpdates do
  let(:client) { AngellistApi::Client.new }

  describe "#get_status_updates" do
    it "gets 1/status_updates" do
      options = { :some => "options" }
      client.should_receive(:get).with("1/status_updates", options).and_return("success")
      client.get_status_updates(options).should == "success"
    end
  end

  describe "#post_status_updates" do
    it "posts to 1/status_updates" do
      options = { :some => "options" }
      client.should_receive(:post).with("1/status_updates", options).and_return("success")
      client.post_status_updates(options).should == "success"
    end
  end

  describe "#delete_status_updates" do
    it "deletes 1/status_updates/<id>" do
      id = "123"
      client.should_receive(:delete).with("1/status_updates/#{id}").and_return("success")
      client.delete_status_updates(id).should == "success"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
angellist_api-1.1.0 spec/unit/lib/angellist_api/client/status_updates_spec.rb
angellist_api-1.0.7 spec/unit/lib/angellist_api/client/status_updates_spec.rb
angellist_api-1.0.6 spec/unit/lib/angellist_api/client/status_updates_spec.rb
angellist_api-1.0.5 spec/unit/lib/angellist_api/client/status_updates_spec.rb
angellist_api-1.0.4 spec/unit/lib/angellist_api/client/status_updates_spec.rb
angellist_api-1.0.3 spec/unit/lib/angellist_api/client/status_updates_spec.rb
angellist_api-1.0.2 spec/unit/lib/angellist_api/client/status_updates_spec.rb