diff --git a/app/controllers/movies_controller.rb b/app/controllers/movies_controller.rb index 71fb71d75..758609800 100644 --- a/app/controllers/movies_controller.rb +++ b/app/controllers/movies_controller.rb @@ -3,7 +3,10 @@ class MoviesController < ApplicationController def index @movies = Movie.find(:all, :order => 'release_date') end - + + def search_tmdb + end + def new @movie = Movie.new end diff --git a/app/views/movies/search_tmdb.html.haml b/app/views/movies/search_tmdb.html.haml new file mode 100644 index 000000000..8d1c8b69c --- /dev/null +++ b/app/views/movies/search_tmdb.html.haml @@ -0,0 +1 @@ + diff --git a/spec/controllers/movies_controller_spec.rb b/spec/controllers/movies_controller_spec.rb index db7d27429..13789fa4c 100644 --- a/spec/controllers/movies_controller_spec.rb +++ b/spec/controllers/movies_controller_spec.rb @@ -1,5 +1,11 @@ require 'spec_helper' describe MoviesController do - + describe 'searching TMDb' do + it 'should call the model method that performs TMDb search' do + post :search_tmdb, :params => {: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