Sha256: 13f808dd5eeb9d5a9a6be40ade9c10a31b099fc22e815e540d6e71d11fcc5d25

Contents?: true

Size: 627 Bytes

Versions: 6

Compression:

Stored size: 627 Bytes

Contents

require 'spec_helper'

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

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

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