Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
norrismei committed Sep 24, 2024
1 parent 2d57d06 commit 854389f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spec/factories/partners.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
else
create(:partner_profile, partner_id: partner.id)
end

create(:partner_user, email: partner.email, name: partner.name, partner: partner)
end
end
Expand Down
10 changes: 5 additions & 5 deletions spec/pdfs/picklists_pdf_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

expect(pdf_test.page(1).text).to include(request1.partner.name)
expect(pdf_test.page(1).text).to include(request1.partner.profile.primary_contact_name)
expect(pdf_test.page(1).text).to include(request1.partner.profile.primary_contact_email)
expect(pdf_test.page(1).text).to include(request1.partner.profile.primary_contact_email)
expect(pdf_test.page(1).text).to include("Requested on:")
expect(pdf_test.page(1).text).to include("Items Received Year-to-Date:")
expect(pdf_test.page(1).text).to include("Comments")
Expand Down Expand Up @@ -53,7 +53,7 @@
create(:item_request, request: request, item: item2, name: "Item 2")
pdf = described_class.new(organization, [request])
data = pdf.data_no_units(request.item_requests)

expect(data).to eq([
["Items Requested", "Quantity", "[X]", "Differences / Comments"],
["Item 1", "5", "[ ]", ""],
Expand All @@ -64,7 +64,7 @@

context "When packs are enabled" do
before { Flipper.enable(:enable_packs) }

specify "#data_with_units" do
item_with_units = create(:item, name: "Item with units", organization: organization)
create(:item_unit, item: item_with_units, name: "Pack")
Expand All @@ -73,12 +73,12 @@
create(:item_request, request: request, item: item2, name: "Item 2")
pdf = described_class.new(organization, [request])
data = pdf.data_with_units(request.item_requests)

expect(data).to eq([
["Items Requested", "Quantity", "Unit (if applicable)", "[X]", "Differences / Comments"],
["Item with units", "5", "Packs", "[ ]", ""],
["Item 2", "5", nil, "[ ]", ""]
])
end
end
end
end

0 comments on commit 854389f

Please sign in to comment.