blob: d3be1b509324f7c5ba38ffb30d5270b496f458de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
require 'spec_helper'
describe "matches/index" do
before(:each) do
assign(:matches, [
stub_model(Match,
:tournament => nil,
:name => "Name"
),
stub_model(Match,
:tournament => nil,
:name => "Name"
)
])
end
it "renders a list of matches" 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
assert_select "tr>td", :text => "Name".to_s, :count => 2
end
end
|