Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ruby_ui/separator/separator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Separator < Base
def initialize(as: :div, orientation: :horizontal, decorative: true, **attrs)
raise ArgumentError, "Invalid orientation: #{orientation}" unless ORIENTATIONS.include?(orientation.to_sym)

@as = as.to_sym
@as = as
@orientation = orientation.to_sym
@decorative = decorative
super(**attrs)
Expand Down
2 changes: 1 addition & 1 deletion test/ruby_ui/separator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_render_with_decorative_false

def test_render_with_custom_tag
output = phlex do
RubyUI.Separator(as: "hr")
RubyUI.Separator(as: :hr)
end

assert_match(/<hr/, output)
Expand Down