1 require File.dirname(__FILE__) + '/../../spec_helper'
3 describe "/shows/index" do
6 @show.stub!(:id).and_return(1)
7 @show.stub!(:title).and_return('test show')
8 @show.stub!(:class).and_return('Show')
11 it "should contain an unordered list of shows" do
12 assigns[:shows] = [@show]
15 response.should have_tag('ul#show_list') do
16 with_tag('li.show#show_1') do
17 with_tag('a', 'test show')