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

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