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