-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Perez
committed
Mar 22, 2016
1 parent
b94d8ae
commit e338a86
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
defmodule HoundNotSupportedErrorTest do | ||
use ExUnit.Case | ||
|
||
test "message" do | ||
{:ok, info} = Hound.ConnectionServer.driver_info | ||
function_name = "foo" | ||
err = try do | ||
raise Hound.NotSupportedError, function: function_name | ||
rescue | ||
e -> Exception.message(e) | ||
end | ||
assert err =~ "not supported" | ||
assert err =~ function_name | ||
assert err =~ info.driver | ||
assert err =~ info.browser | ||
end | ||
end |