Skip to content

Commit

Permalink
Update svg.test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Sep 18, 2024
1 parent 1fad2aa commit 6c8b602
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions quickdraw/html/svg.test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ def view_template
end
end

class ExampleWithoutContent < Phlex::HTML
def view_template
svg
end
end

test "rendering SVG without content" do
expect(ExampleWithoutContent.call) == %(<svg></svg>)
end

test "rendering SVG inside HTML components" do
expect(Example.call) == %(<svg><path d="321"></path></svg>)
end

0 comments on commit 6c8b602

Please sign in to comment.