Skip to content

Commit

Permalink
Re-instate check for external_billing_id
Browse files Browse the repository at this point in the history
  • Loading branch information
dacook committed Jan 9, 2025
1 parent 33f7d8d commit 363640c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/serializers/api/admin/enterprise_serializer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 363640c

Please sign in to comment.