Updated to use .first; here and a few other places.

On Mar 14, 2014, at 12:56 PM, Tim Irwin <notifications@github.com> wrote:

> In spec/models/game_spec.rb:
> 
> > +
> > +  context "Create a basic game game." do
> > +    before (:each) do
> > +      @game = Game.new()
> > +      @game.add_player(501, "One")
> > +      @game.start()
> > +
> > +      @current_player = @game.current_player
> > +    end
> > +    
> > +    it "#new: creates the game" do
> > +      @game.is_a?(Game).should be true
> > +    end
> > +
> > +    it "#add_player: adds a new player" do
> > +      @game.players[0].is_a?(Player).should be true
> Would .first work?
> 
> —
> Reply to this email directly or view it on GitHub.
>