Skip to content

Commit

Permalink
Empty controller method and empty view to help get started with initi…
Browse files Browse the repository at this point in the history
…al specs
  • Loading branch information
armandofox committed Sep 14, 2011
1 parent b159472 commit ec6d6f6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/controllers/movies_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions app/views/movies/search_tmdb.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

8 changes: 7 additions & 1 deletion spec/controllers/movies_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ec6d6f6

Please sign in to comment.