Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 81cdb9f

Browse files
committed
reword errors occurred message
1 parent c680951 commit 81cdb9f

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

lib/rspec/core/notifications.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ def totals_line
311311
summary << ", " << Formatters::Helpers.pluralize(failure_count, "failure")
312312
summary << ", #{pending_count} pending" if pending_count > 0
313313
if errors > 0
314-
summary << ", " << Formatters::Helpers.pluralize(errors, "error") << " occurred"
314+
summary << ", " << Formatters::Helpers.pluralize(errors, "error")
315+
summary << " occurred outside of examples"
315316
end
316317
summary
317318
end

spec/integration/spec_file_load_errors_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
8282
8383
Finished in n.nnnn seconds (files took n.nnnn seconds to load)
84-
0 examples, 0 failures, 2 errors occurred
84+
0 examples, 0 failures, 2 errors occurred outside of examples
8585
EOS
8686
end
8787
end

spec/integration/suite_hooks_errors_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def run_spec_expecting_non_zero(before_or_after)
6262
6363
6464
Finished in n.nnnn seconds (files took n.nnnn seconds to load)
65-
0 examples, 0 failures, 1 error occurred
65+
0 examples, 0 failures, 1 error occurred outside of examples
6666
EOS
6767
end
6868

@@ -79,7 +79,7 @@ def run_spec_expecting_non_zero(before_or_after)
7979
8080
8181
Finished in n.nnnn seconds (files took n.nnnn seconds to load)
82-
1 example, 0 failures, 1 error occurred
82+
1 example, 0 failures, 1 error occurred outside of examples
8383
EOS
8484
end
8585

@@ -126,7 +126,7 @@ def run_spec_expecting_non_zero(before_or_after)
126126
127127
128128
Finished in n.nnnn seconds (files took n.nnnn seconds to load)
129-
0 examples, 0 failures, 3 errors occurred
129+
0 examples, 0 failures, 3 errors occurred outside of examples
130130
EOS
131131
end
132132
end

spec/rspec/core/formatters/base_text_formatter_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
it 'with errors includes that count' do
4444
send_notification :dump_summary, summary_notification(2, examples(2), examples(2), examples(2), 0, 3)
45-
expect(formatter_output.string).to match("2 examples, 2 failures, 2 pending, 3 errors occurred")
45+
expect(formatter_output.string).to match("2 examples, 2 failures, 2 pending, 3 errors occurred outside of examples")
4646
end
4747

4848
describe "rerun command for failed examples" do

0 commit comments

Comments
 (0)