Fixing tests

This commit is contained in:
2026-05-30 08:55:12 -06:00
parent a1f31a89b2
commit df68358a2e
4 changed files with 62 additions and 20 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ require 'socket'
require 'json'
HOSTNAME = 'localhost'
PORT = 20001
PORT = 2000
RSpec.describe "app.rb" do
let(:client) {TCPSocket.open(HOSTNAME, PORT)}
+1 -1
View File
@@ -41,7 +41,7 @@ RSpec.describe Player do
end
it 'raises errors when the faction does not match' do
expect{subject = Player.new(player_id, 'billy_bob_jo')}.to raise_error(PlayerError, 'Faction must be `good` or `evil`')
expect{subject = Player.new(player_id, 'billy_bob_jo')}.to raise_error(PlayerError, 'Faction must be \`good\` or \`evil\`')
end
end