diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-15 02:48:05 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-15 02:48:05 +0900 |
commit | 64c3842e02e65bb173d275e4ac2cdbea5afcf562 (patch) | |
tree | 8c8c371173435cb0ec3bf659858908f16142699f /spec | |
parent | d378edca8215080fb0a86899f6dc52643bdb0852 (diff) | |
download | hybring-64c3842e02e65bb173d275e4ac2cdbea5afcf562.tar.gz |
Hopefully improve accessibility
Diffstat (limited to 'spec')
-rw-r--r-- | spec/server.cr | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/server.cr b/spec/server.cr index 69bb543..d24fe1d 100644 --- a/spec/server.cr +++ b/spec/server.cr @@ -110,13 +110,14 @@ describe Server do it "rejects too long nick" do msg = "Must be within #{MAX_NICK_LENGTH} characters" - expect_errors url, {"nick" => "x" * (MAX_NICK_LENGTH + 1)}, {"nick" => msg} + expect_errors url, {"nick" => "x" * (MAX_NICK_LENGTH + 1)}, + {"nick" => "Must match #{NICK_PATTERN}"} end it "rejects nicks that are not lowercase alphanumeric" do %w(camelCase pun/tu?a#tion).each do |nick| expect_errors url, {"nick" => nick}, - {"nick" => "Must be ASCII lowercase alphanumeric"} + {"nick" => "Must match #{NICK_PATTERN}"} end end |