search for: player_1

Displaying 1 result from an estimated 1 matches for "player_1".

Did you mean: layer_1
2007 Oct 06
4
spec''ing views, mock_model associations
...@game = mock_model(Game, :name => ''The Battle for Blaze'', :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 scrubbe...