diff --git a/spec/serializers/api/admin/enterprise_serializer_spec.rb b/spec/serializers/api/admin/enterprise_serializer_spec.rb index df2a86f8027..3f20145771f 100644 --- a/spec/serializers/api/admin/enterprise_serializer_spec.rb +++ b/spec/serializers/api/admin/enterprise_serializer_spec.rb @@ -73,13 +73,4 @@ end end end - - context "when there is a external billing id" do - let(:enterprise) { create(:distributor_enterprise, external_billing_id: 'INV123456') } - - it "includes URLs of image versions" do - serializer = Api::Admin::EnterpriseSerializer.new(enterprise) - expect(serializer.as_json[:external_billing_id]).to eq('INV123456') - end - end end diff --git a/spec/system/admin/reports/revenues_by_hub_spec.rb b/spec/system/admin/reports/revenues_by_hub_spec.rb index 5e85340aa32..cc0c25ce113 100644 --- a/spec/system/admin/reports/revenues_by_hub_spec.rb +++ b/spec/system/admin/reports/revenues_by_hub_spec.rb @@ -37,9 +37,9 @@ tax_rate_name: "Tax 1" ) end - let(:distributor1) { create(:enterprise, name: "Hub 1", owner:) } + let(:distributor1) { create(:enterprise, name: "Hub 1", owner:, external_billing_id: 'INV1234') } let(:distributor2) { create(:enterprise, name: "Hub 2", owner:) } - let(:distributor3) { create(:enterprise, name: "Hub 3", owner:) } + let(:distributor3) { create(:enterprise, name: "Hub 3", owner:, external_billing_id: 'INV4321') } let(:owner) { create(:user, email: 'email@email.com') } let(:order_cycle) { create(:simple_order_cycle) } let(:product) { create(:product) } @@ -90,7 +90,7 @@ "none", "none", "none", - "none", + "INV1234", "email@email.com", "none", "10 Lovely Street", @@ -134,7 +134,7 @@ "none", "none", "none", - "none", + "INV4321", "email@email.com", "none", "10 Lovely Street",