Sha256: 66e98a453134db655551ec2f6a13dfcebdef96bc260fef4a15dad83c394dae33

Contents?: true

Size: 534 Bytes

Versions: 1

Compression:

Stored size: 534 Bytes

Contents

require 'spec_helper'

describe AngellistApi::Client::Reviews,
  :vcr => { :cassette_name => 'reviews' } do

  let(:client) { AngellistApi::Client.new }

  it 'gets reviews of a user' do
    reviews = client.get_reviews(:user_id => 2850)
    reviews.should have_key :total_positive
    reviews.reviews.should be_an_instance_of Array
    reviews.reviews.first.should have_key :rating
  end

  it 'gets a specific review' do
    review = client.get_review(1098)
    review.should have_key :note
    review.rating.should eq 1
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
angellist_api-1.0.7 spec/integration/reviews_spec.rb