Skip to content

Instantly share code, notes, and snippets.

@ajwinn
Created November 14, 2012 02:37
Show Gist options
  • Save ajwinn/4069934 to your computer and use it in GitHub Desktop.
Save ajwinn/4069934 to your computer and use it in GitHub Desktop.
Result of running Rspec
administrator$ rspec spec/controllers/movies_controller_spec.rb
.**
Pending:
MoviesController searching TMDb should select the Search Results template for rendering
# Not yet implemented
# ./spec/controllers/movies_controller_spec.rb:10
MoviesController searching TMDb should make the TMDb search results available to that template
# Not yet implemented
# ./spec/controllers/movies_controller_spec.rb:11
Finished in 0.44454 seconds
3 examples, 0 failures, 2 pending
require 'spec_helper'
describe MoviesController do
describe 'searching TMDb' do
it 'should call the model method that performs TMDb search' do
Movie.should_receive(:find_in_tmdb).with('hardware')
post :search_tmdb,{:search_terms => 'hardware'}
end
it 'should select the Search Results template for rendering'
it 'should make the TMDb search results available to that template'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment