From 6242cebdf9979d5fc912fc30d8dfec79994bc418 Mon Sep 17 00:00:00 2001 From: Egor Kislitsyn Date: Fri, 21 Jun 2019 17:24:30 +0700 Subject: [PATCH] Use double quotes in HTML attributes --- test/auto_linker_test.exs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/auto_linker_test.exs b/test/auto_linker_test.exs index 489b03e..9baf243 100644 --- a/test/auto_linker_test.exs +++ b/test/auto_linker_test.exs @@ -13,8 +13,8 @@ defmodule AutoLinkerTest do end test "does on link existing links" do - assert AutoLinker.link("google.com") == - "google.com" + text = ~s(google.com) + assert AutoLinker.link(text) == text end test "all kinds of links" do @@ -123,11 +123,11 @@ defmodule AutoLinkerTest do "Hello again, @user.<script></script>\nThis is on another :moominmamma: line. #2hu #epic #phantasmagoric" handler = fn "@" <> user = mention, _, _, _ -> - ~s(@#{mention}) + ~s(@#{mention}) end expected = - "Hello again, @@user.<script></script>\nThis is on another :moominmamma: line. #2hu #epic #phantasmagoric" + ~s(Hello again, @@user.<script></script>\nThis is on another :moominmamma: line. #2hu #epic #phantasmagoric) assert AutoLinker.link(text, mention: true,