Sha256: ac5d85325a58aabde98038320616b99a5ad2c132cd11ffa6cc97b0bd654fdacf
Contents?: true
Size: 673 Bytes
Versions: 2
Compression:
Stored size: 673 Bytes
Contents
require 'spec_helper' describe 'Candidate Find' do context 'by id' do context 'when the candidate exists' do use_vcr_cassette 'candidate exists with id' it 'returns a user with the correct attributes' do candidate = board.candidates.find(100) candidate.id.should == 100 candidate.email.should == 'candidate@recruitmilitary.com' end end context 'when the candidate does not exist' do use_vcr_cassette 'candidate id does not exist' it 'raises a not found exception' do expect { board.candidates.find(42) }.to raise_error(Board::Client::NotFound) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
board-client-0.99.1 | spec/integration/candidates/find_spec.rb |
board-client-0.99.0 | spec/integration/candidates/find_spec.rb |