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 all available slots where they want to place an X' do
      expect(new_game.prompt_user_for_input).to eq("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


--- 
+++ 
@@ -12,8 +12,8 @@
   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")
+    it 'ask users to input the position on all available slots where they want to place an X' do
+      expect(new_game.prompt_user_for_input).to eq("Enter a number 0, 1, 2, 3, 4, 5, 6, 7, 8 to place an X")
     end
   end
 
Update spot to slot to be consistent with other test
