Allow custom options in links to actions

Some links were using options like `remote: true`.
This commit is contained in:
Javi Martín
2020-06-11 15:39:28 +02:00
parent 497963817c
commit e3753b1ad9
4 changed files with 28 additions and 13 deletions

View File

@@ -48,4 +48,10 @@ describe Admin::TableActionsComponent, type: :component do
expect(page).to have_css "a[data-confirm='Are you mad? Be careful!']"
end
it "allows custom options" do
render_inline Admin::TableActionsComponent.new(record, edit_options: { id: "edit_me" })
expect(page).to have_css "a#edit_me"
end
end