Skip to content

Commit

Permalink
Repair specs
Browse files Browse the repository at this point in the history
  • Loading branch information
pacodelaluna committed Nov 28, 2024
1 parent 9487d14 commit d801e8d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1718,6 +1718,7 @@ en:
enterprise:
primary_details: "Primary Details"
address: "Address"
admin_only: "Admin Only"
contact: "Contact"
social: "Social"
about: "About"
Expand Down
9 changes: 4 additions & 5 deletions spec/controllers/api/v0/enterprises_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
let(:enterprise) { create(:distributor_enterprise) }

context "as an admin user" do
let(:admin) { create(:user) }
let(:admin) { create(:admin_user) }
let!(:enterprise) { create(:distributor_enterprise) }

before do
Expand All @@ -18,13 +18,12 @@
describe "updating an enterprise" do
let(:enterprise_params) do
{
enterprise_id: enterprise.id,
enterprise: { external_billing_id: 'INV123456' }
external_billing_id: 'INV123456'
}
end

it "creates a visible=hidden enterprise" do
api_post :create, enterprise_params
it "changes the external_billing_id field" do
api_put :update, id: enterprise.id, enterprise: enterprise_params
expect(response.status).to eq 200

expect(enterprise.reload.external_billing_id).to eq('INV123456')
Expand Down
1 change: 1 addition & 0 deletions spec/system/admin/reports/revenues_by_hub_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
expect(page.find("table.report__table thead tr").text).to have_content([
"Hub",
"Hub ID",
"Hub External Billing Id",
"Hub Business Number",
"Hub Legal Name",
"Hub Contact Name",
Expand Down

0 comments on commit d801e8d

Please sign in to comment.