Sha256: c625b9a36901b79a432ecc5126f3043269fc9d54840e652a19e0db1cf0717a06
Contents?: true
Size: 1.05 KB
Versions: 7
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' describe AngellistApi::Client::Jobs do let(:client) { AngellistApi::Client.new } describe '#get_jobs' do it 'gets 1/jobs' do options = { :some => "options" } client.should_receive(:get).with('1/jobs', options).and_return('success') client.get_jobs(options).should == 'success' end end describe '#get_job' do it 'gets 1/jobs/<id>' do id = 123 client.should_receive(:get).with("1/jobs/#{id}").and_return('success') client.get_job(id).should == 'success' end end describe '#get_startup_jobs' do it 'gets 1/startups/<id>/jobs' do id = 123 client.should_receive(:get).with("1/startups/#{id}/jobs").and_return('success') client.get_startup_jobs(id).should == 'success' end end describe '#get_tag_jobs' do it 'gets 1/tags/<id>/jobs' do id = 123 options = { :some => 'options' } client.should_receive(:get).with("1/tags/#{id}/jobs", options).and_return('success') client.get_tag_jobs(id, options).should == 'success' end end end
Version data entries
7 entries across 7 versions & 1 rubygems