From 244e0524c7522db869b551ee873400b1550999d9 Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 10 Jan 2025 10:31:52 +1100 Subject: [PATCH] Re-instate check for external_billing_id --- spec/serializers/api/admin/enterprise_serializer_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/serializers/api/admin/enterprise_serializer_spec.rb b/spec/serializers/api/admin/enterprise_serializer_spec.rb index 3f20145771f..8483c2e27c9 100644 --- a/spec/serializers/api/admin/enterprise_serializer_spec.rb +++ b/spec/serializers/api/admin/enterprise_serializer_spec.rb @@ -5,10 +5,11 @@ RSpec.describe Api::Admin::EnterpriseSerializer do include FileHelper - let(:enterprise) { create(:distributor_enterprise) } + let(:enterprise) { create(:distributor_enterprise, external_billing_id: 'INV123456') } it "serializes an enterprise" do serializer = Api::Admin::EnterpriseSerializer.new enterprise expect(serializer.to_json).to match enterprise.name + expect(serializer.as_json[:external_billing_id]).to eq('INV123456') end context "for logo" do