Enterprise fee controller: Add all fees scenario #11326

This commit is contained in:
Abdul Aziz Ali
2024-07-10 19:42:47 +08:00
parent 31d49ee99e
commit 718e6765e1

View File

@@ -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