Skip to content

Commit

Permalink
Add spec for order_cycle_management report access
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanM committed May 15, 2015
1 parent 924492e commit ef06481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/models/spree/ability_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ module Spree
end

it "should be able to read some reports" do
should have_ability([:admin, :index, :customers, :bulk_coop, :orders_and_fulfillment, :products_and_inventory], for: :report)
should have_ability([:admin, :index, :customers, :bulk_coop, :orders_and_fulfillment, :products_and_inventory, :order_cycle_management], for: :report)
end

it "should not be able to read other reports" do
Expand Down Expand Up @@ -400,7 +400,7 @@ module Spree
end

it "should be able to read some reports" do
should have_ability([:admin, :index, :customers, :sales_tax, :group_buys, :bulk_coop, :payments, :orders_and_distributors, :orders_and_fulfillment, :products_and_inventory], for: :report)
should have_ability([:admin, :index, :customers, :sales_tax, :group_buys, :bulk_coop, :payments, :orders_and_distributors, :orders_and_fulfillment, :products_and_inventory, :order_cycle_management], for: :report)
end

it "should not be able to read other reports" do
Expand Down

0 comments on commit ef06481

Please sign in to comment.