Advertisement
saasbook

our first controller spec

Jan 10th, 2012
5,490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.28 KB | None | 0 0
  1. require 'spec_helper'
  2.  
  3. describe MoviesController do
  4.   describe 'searching TMDb' do
  5.     it 'should call the model method that performs TMDb search' do
  6.       Movie.should_receive(:find_in_tmdb).with('hardware')
  7.       post :search_tmdb, {:search_terms => 'hardware'}
  8.     end
  9.   end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement