Skip to content

Commit c2f03ad

Browse files
pierry01claude
andcommitted
test(data_table): match checked boolean attribute regardless of order in column toggle test
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent ddc4733 commit c2f03ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gem/test/ruby_ui/data_table_column_toggle_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_column_can_start_hidden
3434
{key: :salary, label: "Salary", visible: false}
3535
])
3636
end
37-
# only the visible column renders the `checked` attribute on its checkbox
38-
assert_equal 1, output.scan("checked class=").length
37+
# only the visible column renders the `checked` boolean attribute on its checkbox
38+
assert_equal 1, output.scan(/\bchecked(?:\s|>)/).length
3939
end
4040
end

0 commit comments

Comments
 (0)