From ed43edc6369985bced5f95c637c551d23b8a3f0f Mon Sep 17 00:00:00 2001 From: Egor Kislitsyn Date: Fri, 8 Feb 2019 17:56:05 +0700 Subject: [PATCH] make tests async --- test/auto_linker_test.exs | 2 +- test/builder_test.exs | 2 +- test/parser_test.exs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/auto_linker_test.exs b/test/auto_linker_test.exs index 0d63125..968c847 100644 --- a/test/auto_linker_test.exs +++ b/test/auto_linker_test.exs @@ -1,5 +1,5 @@ defmodule AutoLinkerTest do - use ExUnit.Case + use ExUnit.Case, async: true doctest AutoLinker test "phone number" do diff --git a/test/builder_test.exs b/test/builder_test.exs index 114e260..4272359 100644 --- a/test/builder_test.exs +++ b/test/builder_test.exs @@ -1,5 +1,5 @@ defmodule AutoLinker.BuilderTest do - use ExUnit.Case + use ExUnit.Case, async: true doctest AutoLinker.Builder import AutoLinker.Builder diff --git a/test/parser_test.exs b/test/parser_test.exs index a0cf533..f15c600 100644 --- a/test/parser_test.exs +++ b/test/parser_test.exs @@ -1,5 +1,5 @@ defmodule AutoLinker.ParserTest do - use ExUnit.Case + use ExUnit.Case, async: true doctest AutoLinker.Parser import AutoLinker.Parser @@ -68,7 +68,7 @@ defmodule AutoLinker.ParserTest do test "excludes html with specified class" do text = "```Check out
google.com
```" - assert parse(text, exclude_pattern: "```") == text + assert parse(text, exclude_patterns: ["```"]) == text end end