blob: bf36e06347663c0fec500ee7d16d061d46369b5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
require 'spec_helper'
describe "tournaments/index" do
before(:each) do
assign(:tournaments, [
stub_model(Tournament,
:game => nil
),
stub_model(Tournament,
:game => nil
)
])
end
it "renders a list of tournaments" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "tr>td", :text => nil.to_s, :count => 2
end
end
|