From 718e6765e1f9b4db5485a322947cc88b1578ae3e Mon Sep 17 00:00:00 2001 From: Abdul Aziz Ali Date: Wed, 10 Jul 2024 19:42:47 +0800 Subject: [PATCH] Enterprise fee controller: Add all fees scenario #11326 --- spec/controllers/admin/enterprise_fees_controller_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/controllers/admin/enterprise_fees_controller_spec.rb b/spec/controllers/admin/enterprise_fees_controller_spec.rb index ba6aa0f306..de79434db5 100644 --- a/spec/controllers/admin/enterprise_fees_controller_spec.rb +++ b/spec/controllers/admin/enterprise_fees_controller_spec.rb @@ -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