Displaying 1 result from an estimated 1 matches for "player_2".
Did you mean:
player2
2007 Oct 06
4
spec''ing views, mock_model associations
...39;',
:salt_grains => ''5000000'',
:people => ''5000000'',
:days => nil,
:created_at => "Mon Oct 01 00:02:44 -0400 2007",
:enabled => true)
player_1 = mock_model(Player, :salt_grains => ''500'')
player_2 = mock_model(Player, :salt_grains => ''900'')
@game.players = [ player_1, player_2 ]
How do I write this? I would need an example
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071006/05...