Sha256: a3f45b732c7177180af66eca4a8bfcbd2b77c3fbdd8cf45fc48173b23278de1c

Contents?: true

Size: 580 Bytes

Versions: 2

Compression:

Stored size: 580 Bytes

Contents

require 'spec_helper'

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

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

  describe '#get_review' do
    it 'gets 1/reviews/<id>' do
      id = 1098
      client.should_receive(:get).with("1/reviews/#{id}").and_return('success')
      client.get_review(id).should == 'success'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
angellist_api-1.1.0 spec/unit/lib/angellist_api/client/reviews_spec.rb
angellist_api-1.0.7 spec/unit/lib/angellist_api/client/reviews_spec.rb