Allow using table actions in different namespaces
This way we can reuse it in sections like SDGManagement and URLs will be automatically generated as expected.
This commit is contained in:
@@ -6,6 +6,10 @@ describe Admin::Poll::Officers::OfficersComponent, type: :component do
|
||||
let(:officers) { [existing_officer, new_officer] }
|
||||
let(:component) { Admin::Poll::Officers::OfficersComponent.new(officers) }
|
||||
|
||||
before do
|
||||
allow(ViewComponent::Base).to receive(:test_controller).and_return("Admin::BaseController")
|
||||
end
|
||||
|
||||
it "renders as many rows as officers" do
|
||||
render_inline component
|
||||
|
||||
|
||||
Reference in New Issue
Block a user