Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rails_helper'
- describe MoviesController do
- describe 'searching TMDb' do
- it 'calls the model method that performs TMDb search' do
- fake_results = [mock('movie1'), mock('movie2')]
- expect(Movie).to receive(:find_in_tmdb).with('hardware').
- and_return(fake_results)
- post :search_tmdb, {:search_terms => 'hardware'}
- end
- it 'selects the Search Results template for rendering'
- it 'makes the TMDb search results available to that template'
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement