require './lib/game.rb'
require './lib/tic_tac_toe.rb'

describe Game do
  let(:ttt){TicTacToe.new}
  let(:new_game){Game.new(ttt)}

  describe '#initialize' do
    it 'with a new instance of TicTacToe' do
      expect(new_game.instance_variable_get(:@ttt)).to eq(ttt)
    end
  end

  describe  '#prompt_user_for_input' do
    it 'ask users to input the position on available spots where they want to place an X' do
      expect(new_game.prompt_user_for_inpt).to include("Enter a number 0, 1, 2, 3, 4, 5, 6, 7, 8 to place an X")
    end
  end

end


require './lib/game.rb'
require './lib/tic_tac_toe.rb'

describe Game do
  let(:ttt){TicTacToe.new}
  let(:new_game){Game.new(ttt)}

  describe '#initialize' do
    it 'with a new instance of TicTacToe' do
      expect(new_game.instance_variable_get(:@ttt)).to eq(ttt)
    end
  end

  describe  '#prompt_user_for_input' do
    it 'ask users to input the position on available spots where they want to place an X' do
      expect(new_game.prompt_user_for_input).to include("Enter a number 0, 1, 2, 3, 4, 5, 6, 7, 8 to place an X")
    end
  end

end


Fix typo *inpt to input
Fix typo *inpt to input
