summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-01-11 18:29:55 +0900
committerHiroshi SHIBATA <[email protected]>2023-01-11 20:00:21 +0900
commitb311c35bdbfec69a49aad31e3ba9accabd5e12c4 (patch)
treecd71c18f1e2158f2914d276b4ede5aeebba14837 /spec/lib
parent3161fd437210588ef7ce41d614ab317de11d2ec1 (diff)
Suppressing pending messages with RSpec
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7102
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/formatter_overrides.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/formatter_overrides.rb b/spec/lib/formatter_overrides.rb
new file mode 100644
index 0000000000..4a61d425d1
--- /dev/null
+++ b/spec/lib/formatter_overrides.rb
@@ -0,0 +1,6 @@
+module FormatterOverrides
+ def example_pending(_); end
+ def dump_pending(_); end
+end
+
+RSpec::Core::Formatters::ProgressFormatter.prepend FormatterOverrides