mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Enterprise fee controller: Add all fees scenario #11326
This commit is contained in:
@@ -35,6 +35,11 @@ RSpec.describe Admin::EnterpriseFeesController do
|
||||
per_order: true }
|
||||
expect(assigns(:collection)).to include fee1, fee3
|
||||
end
|
||||
it 'returns all enterprise fees of enterprise' do
|
||||
get :for_order_cycle, format: :json,
|
||||
params: { for_order_cycle: true, order_cycle_id: order_cycle.id }
|
||||
expect(assigns(:collection)).to include fee1, fee2, fee3, fee4
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user