Skip to content

Commit

Permalink
server: changed text in server tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bLandais committed Oct 8, 2019
1 parent ae16e21 commit 6c6d418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/test/com/alexitc/chat/actors/PeerActorSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class PeerActorSpec

"reject bob due to wrong secret" in {
bob.actor ! PeerActor.Command.JoinChannel(channelName, Channel.Secret("what?"), bob.peer)
bob.client.expectMsg(PeerActor.Event.CommandRejected("The secret or the channel is incorrect"))
bob.client.expectMsg(PeerActor.Event.CommandRejected("The secret or the room is incorrect"))
}

"allow bob to join" in {
Expand All @@ -59,7 +59,7 @@ class PeerActorSpec

"reject carlos due to channel being full" in {
carlos.actor ! PeerActor.Command.JoinChannel(channelName, channelSecret, carlos.peer)
carlos.client.expectMsg(PeerActor.Event.CommandRejected("The channel is full, if you need bigger channels, write us to [email protected]"))
carlos.client.expectMsg(PeerActor.Event.CommandRejected("The room is full, if you need bigger rooms, write us to [email protected]"))
}

"notify alice that bob has joined" in {
Expand Down

0 comments on commit 6c6d418

Please sign in to comment.