Test to ensure report abilities

This commit is contained in:
David Cook
2024-09-17 13:23:14 +10:00
parent a9ad6a2851
commit 296997d558

View File

@@ -415,7 +415,7 @@ RSpec.describe Spree::Ability do
it "should be able to read some reports" do
is_expected.to have_ability(
[:admin, :index, :show], for: Admin::ReportsController
[:admin, :index, :show, :create], for: Admin::ReportsController
)
is_expected.to have_ability(
[:customers, :bulk_coop, :orders_and_fulfillment, :products_and_inventory,
@@ -651,7 +651,7 @@ RSpec.describe Spree::Ability do
it "should be able to read some reports" do
is_expected.to have_ability(
[:admin, :index, :show], for: Admin::ReportsController
[:admin, :index, :show, :create], for: Admin::ReportsController
)
is_expected.to have_ability(
[:customers, :sales_tax, :group_buys, :bulk_coop, :payments,