From 4c768f41d4fe84bab3368e410bc11c72423de93c Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Fri, 10 Jan 2025 16:49:24 +0100 Subject: [PATCH] Add new RSpec negate matcher not_change --- spec/spec_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 19f85ae593d..c493bbc86ff 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -295,6 +295,7 @@ def initialize(*args, &block) # Helper matchers RSpec::Matchers.define_negated_matcher :not_be, :be +RSpec::Matchers.define_negated_matcher :not_change, :change # The Ruby Timeout class uses a long-lived class-level thread that is never terminated. # Creating it early here ensures tests that tests that check for leaking threads are not