Skip to content

Commit 109cac7

Browse files
authored
Merge pull request #5926 from nhsuk/clear-progress-bar-each-test
Clear CLI progress bar after each test
2 parents 508d5c0 + d3339ff commit 109cac7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

app/lib/generate/cohort_imports.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def write_cohort_import_csv
112112
progress_bar&.increment
113113
end
114114
end
115+
115116
cohort_import_csv_filepath.to_s
116117
end
117118

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
SMSDeliveryJob.deliveries.clear
214214
end
215215

216-
config.before(:all, type: :feature) do
216+
config.before(:each, type: :feature) do
217217
MavisCLI.instance_variable_set(:@progress_bar, nil)
218218
end
219219

0 commit comments

Comments
 (0)