From eb1322361b1c53eb1d8cc11b548abeae4564740d Mon Sep 17 00:00:00 2001 From: Joel Drapper Date: Mon, 16 Dec 2024 21:48:37 +0000 Subject: [PATCH] Update sgml.test.rb --- quickdraw/sgml.test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickdraw/sgml.test.rb b/quickdraw/sgml.test.rb index db10dd0a..e2958db5 100644 --- a/quickdraw/sgml.test.rb +++ b/quickdraw/sgml.test.rb @@ -16,7 +16,7 @@ def template end end - expect(component.new.call) == Phlex::Escape.html_escape( + assert_equal component.new.call, Phlex::Escape.html_escape( %(Phlex Warning: Your `#{component.name}` class doesn't define a `view_template` method. If you are upgrading to Phlex 2.x make sure to rename your `template` method to `view_template`. See: https://beta.phlex.fun/guides/v2-upgrade.html) ) end @@ -24,7 +24,7 @@ def template test "components with no `view_template` method render warning" do component = Class.new(Phlex::HTML) - expect(component.new.call) == Phlex::Escape.html_escape( + assert_equal component.new.call, Phlex::Escape.html_escape( %(Phlex Warning: Your `#{component.name}` class doesn't define a `view_template` method. If you are upgrading to Phlex 2.x make sure to rename your `template` method to `view_template`. See: https://beta.phlex.fun/guides/v2-upgrade.html) ) end