RadiactiveJesus/Tic-Tac-Toe

Use let for assigning the variable

Opened this issue · 0 comments

board = Board.new

Please check this and this to know how to use let

Here is an example for you:

describe "#add_at" do
      let(:board) { Board.new }
        it "adds an string, depending on the current player, in a specific position of the board" do
            expect(board.add_at(5, "X")).to eql("X")
        end
    end