Fixing tests
This commit is contained in:
+1
-1
@@ -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)}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user