From 2a7dd8b8f1eeeb331d929e2a64041c6fbd1ed04d Mon Sep 17 00:00:00 2001 From: Rafael Schouten Date: Sat, 18 Oct 2014 06:53:38 +1100 Subject: [PATCH] update ability specs for reports --- spec/models/spree/ability_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/spree/ability_spec.rb b/spec/models/spree/ability_spec.rb index 62e1973e7f..796aed2592 100644 --- a/spec/models/spree/ability_spec.rb +++ b/spec/models/spree/ability_spec.rb @@ -152,11 +152,11 @@ module Spree end it "should be able to read some reports" do - should have_ability([:admin, :index, :customers, :orders_and_fulfillment, :products_and_inventory], for: :reports) + should have_ability([:admin, :index, :customers, :bulk_coop, :orders_and_fulfillment, :products_and_inventory], for: :reports) end it "should not be able to read other reports" do - should_not have_ability([:sales_total, :group_buys, :bulk_coop, :payments], for: :reports) + should_not have_ability([:sales_total, :group_buys, :payments, :orders_and_distributors], for: :reports) end end @@ -247,7 +247,7 @@ module Spree end it "should be able to read some reports" do - should have_ability([:admin, :index, :customers, :group_buys, :bulk_coop, :payments, :orders_and_fulfillment, :products_and_inventory], for: :reports) + should have_ability([:admin, :index, :customers, :group_buys, :bulk_coop, :payments, :orders_and_distributors, :orders_and_fulfillment, :products_and_inventory], for: :reports) end it "should not be able to read other reports" do