Skip to content

Commit

Permalink
Fix flaky export service spec (#4919)
Browse files Browse the repository at this point in the history
  • Loading branch information
coalest authored Jan 10, 2025
1 parent 6e6adfa commit b91e62c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/services/exports/export_request_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
end

it "has expected data for the 3T Diapers request" do
expect(subject[1]).to eq([
expect(subject).to include([
request_3t.created_at.strftime("%m/%d/%Y").to_s,
"Howdy Partner",
"Child",
Expand All @@ -127,7 +127,7 @@
end

it "has expected data for the 2T Diapers request" do
expect(subject[2]).to eq([
expect(subject).to include([
request_2t.created_at.strftime("%m/%d/%Y").to_s,
"Howdy Partner",
"Individual",
Expand All @@ -141,7 +141,7 @@
end

it "has expected data for the request with deleted items" do
expect(subject[3]).to eq([
expect(subject).to include([
request_with_deleted_items.created_at.strftime("%m/%d/%Y").to_s,
"Howdy Partner",
nil,
Expand All @@ -155,7 +155,7 @@
end

it "has expected data for the request with multiple items" do
expect(subject[4]).to eq([
expect(subject).to include([
request_with_multiple_items.created_at.strftime("%m/%d/%Y").to_s,
"Howdy Partner",
nil,
Expand All @@ -169,7 +169,7 @@
end

it "has expected data for the request with 4T diapers without pack unit" do
expect(subject[5]).to eq([
expect(subject).to include([
request_4t.created_at.strftime("%m/%d/%Y").to_s,
"Howdy Partner",
"Quantity",
Expand All @@ -183,7 +183,7 @@
end

it "has expected data for the request with 4T diapers with pack unit" do
expect(subject[6]).to eq([
expect(subject).to include([
request_4t_pack.created_at.strftime("%m/%d/%Y").to_s,
"Howdy Partner",
"Quantity",
Expand All @@ -198,7 +198,7 @@

it "has expected data even when the unit was deleted" do
item_4t.request_units.destroy_all
expect(subject[6]).to eq([
expect(subject).to include([
request_4t_pack.created_at.strftime("%m/%d/%Y").to_s,
"Howdy Partner",
"Quantity",
Expand Down

0 comments on commit b91e62c

Please sign in to comment.