Skip to content

Commit

Permalink
Add new RSpec negate matcher not_change
Browse files Browse the repository at this point in the history
  • Loading branch information
Strech committed Jan 10, 2025
1 parent f4a1f0f commit 4c768f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c768f4

Please sign in to comment.