Use let for assigning the variable
Opened this issue · 0 comments
dipto0321 commented
Tic-Tac-Toe/spec/board_spec.rb
Line 6 in 022fa52
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