Skip to content

Commit d3db929

Browse files
authored
Fix date format in diagnosis component spec (#5500)
**Story card:** [sc-14257](https://app.shortcut.com/simpledotorg/story/14257/fix-failure-in-the-diabetes-component-spec) ## Because Deploying to production is broken with the failing test ## This addresses Fixing the failing date format for the expectation ## Test instructions - Existing test suite
1 parent 4ffa4be commit d3db929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/components/progress_tab/diabetes/diagnosis_report_component_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
end
131131

132132
it "displays the last updated date and time" do
133-
formatted_date_time = last_updated_at.strftime("%d-%b-%Y at %I:%M %p")
133+
formatted_date_time = last_updated_at.strftime("%-d-%b-%Y at %I:%M %p")
134134
expect(subject).to have_text("Data last updated on #{formatted_date_time}")
135135
end
136136

0 commit comments

Comments
 (0)