Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'spec_helper'
- describe Movie do
- describe 'searching Tmdb by keyword' do
- # first spec elided for brevity
- it 'should raise an InvalidKeyError with no API key' do
- Movie.stub(:api_key).and_return('')
- lambda { Movie.find_in_tmdb('Inception') }.
- should raise_error(Movie::InvalidKeyError)
- end
- end
- end
Add Comment
Please, Sign In to add comment