Skip to content

Commit

Permalink
Improve specs
Browse files Browse the repository at this point in the history
  • Loading branch information
pacodelaluna committed Jan 8, 2025
1 parent 3bcca1e commit 104a6f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
9 changes: 0 additions & 9 deletions spec/serializers/api/admin/enterprise_serializer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions spec/system/admin/reports/revenues_by_hub_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 protected]') }
let(:order_cycle) { create(:simple_order_cycle) }
let(:product) { create(:product) }
Expand Down Expand Up @@ -90,7 +90,7 @@
"none",
"none",
"none",
"none",
"INV1234",
"[email protected]",
"none",
"10 Lovely Street",
Expand Down Expand Up @@ -134,7 +134,7 @@
"none",
"none",
"none",
"none",
"INV4321",
"[email protected]",
"none",
"10 Lovely Street",
Expand Down

0 comments on commit 104a6f0

Please sign in to comment.