InPlaceEditor removed from the view.
[lyrix.git] / spec / views / shows / index_view_spec.rb
blobe84e84517c094deeeec4e904974928a0e69c4360
1 require File.dirname(__FILE__) + '/../../spec_helper'
3 describe "/shows/index" do
4   before do
5     @show = mock("show")
6     @show.stub!(:id).and_return(1)
7     @show.stub!(:title).and_return('test show')
8     @show.stub!(:class).and_return('Show')
9   end
10   
11   it "should contain an unordered list of shows" do
12     assigns[:shows] = [@show]
13     
14     render '/shows/index'
15     response.should have_tag('ul#show_list') do
16       with_tag('li.show#show_1') do
17         with_tag('a', 'test show')
18       end
19     end
20   end
21 end