Skip to content

Commit 0a88afa

Browse files
committed
Add test
1 parent 7234733 commit 0a88afa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spec/datagrid/helper_spec.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,16 @@
234234
)
235235
end
236236

237+
it "renders html columns with grid argument" do
238+
grid = test_grid_column(:name, html: true) do |model, grid|
239+
tag.span(model.name, data: {id: grid.object_id})
240+
end
241+
242+
expect(subject.datagrid_rows(grid, [entry])).to match_css_pattern(
243+
"tr td[data-column=name] span[data-id=#{grid.object_id}]" => "Star",
244+
)
245+
end
246+
237247
it "renders :html columns with &:symbol block" do
238248
rp = test_grid_column(:name, html: true, &:name)
239249

0 commit comments

Comments
 (0)