Skip to content

Commit

Permalink
💚 Update tests for string_type (use new exception)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImNotAVirus committed Aug 25, 2019
1 parent bb38b82 commit 491040c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/lib/elven_gard/protocol/binary/string_type_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ defmodule ElvenGard.Protocol.Binary.StringTypeTest do

describe "Decode binary string type:" do
test "raise without length" do
expected = "You must specify a size in bytes/bits for a string"

assert_raise RuntimeError, expected, fn -> StringType.decode("no length") end
assert_raise ElvenGard.TypeOptionError, fn ->
StringType.decode("no length")
end
end

test "without rest (size in bytes)" do
Expand Down

0 comments on commit 491040c

Please sign in to comment.