blob: fb75ad67cff734b220c5c2d64de139bc23abde3c (
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 "games/show" do
before(:each) do
@game = assign(:game, stub_model(Game,
:name => "MyText",
:players_per_team => 1,
:teams_per_match => 2,
:set_rounds => 3,
:randomized_teams => 4
))
end
it "renders attributes in <p>" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
rendered.should match(/MyText/)
rendered.should match(/1/)
rendered.should match(/2/)
rendered.should match(/3/)
rendered.should match(/4/)
end
end
|