Remove associated abilities

This commit is contained in:
Matt-Yorkley
2023-08-07 14:45:04 +01:00
parent a69ab2ef71
commit a93809b75f
2 changed files with 0 additions and 6 deletions

View File

@@ -234,7 +234,6 @@ module Spree
can [:admin, :index, :read, :create, :edit, :update, :destroy], Spree::Image
can [:admin, :index, :read, :search], Spree::Taxon
can [:admin, :index, :read, :create, :edit], Spree::Classification
can [:admin, :index, :guide, :import, :save, :save_data,
:validate_data, :reset_absent_products], ProductImport::ProductImporter

View File

@@ -399,11 +399,6 @@ describe Spree::Ability do
is_expected.to have_ability([:admin, :index, :read, :search], for: Spree::Taxon)
end
it "should be able to read/write Classifications on a product" do
is_expected.to have_ability([:admin, :index, :read, :create, :edit],
for: Spree::Classification)
end
it "should be able to read/write their enterprises' producer properties" do
is_expected.to have_ability(
[:admin, :index, :read, :create, :edit, :update_positions,