saasbook

movie_spec.1.rb

May 1st, 2012
743
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.26 KB | None | 0 0
  1. require 'spec_helper'
  2.  
  3. describe Movie do
  4.   describe 'searching Tmdb by keyword' do
  5.     it 'should call Tmdb with title keywords' do
  6.       TmdbMovie.should_receive(:find).with(hash_including :title => 'Inception')
  7.       Movie.find_in_tmdb('Inception')
  8.     end
  9.   end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment