Skip to content

Commit

Permalink
Update sgml.test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Dec 16, 2024
1 parent 44e9704 commit eb13223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quickdraw/sgml.test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ 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

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
Expand Down

0 comments on commit eb13223

Please sign in to comment.