mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-05 07:19:14 +00:00
Report Refactor 1: Orders & Distributors
This commit is contained in:
committed by
Jean-Baptiste Bellet
parent
01be6fb1f3
commit
e20c2e3ced
@@ -99,9 +99,9 @@ describe Spree::Admin::ReportsController, type: :controller do
|
||||
it "only shows orders that I have access to" do
|
||||
spree_post :orders_and_distributors
|
||||
|
||||
expect(assigns(:search).result).to include(orderA1, orderB1)
|
||||
expect(assigns(:search).result).not_to include(orderA2)
|
||||
expect(assigns(:search).result).not_to include(orderB2)
|
||||
expect(assigns(:report).search.result).to include(orderA1, orderB1)
|
||||
expect(assigns(:report).search.result).not_to include(orderA2)
|
||||
expect(assigns(:report).search.result).not_to include(orderB2)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user