Allow custom options in links to actions
Some links were using options like `remote: true`.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user