diff options
Diffstat (limited to 'spec/support/matchers.rb')
-rw-r--r-- | spec/support/matchers.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb index c39f2881a6..8f0c1e5f91 100644 --- a/spec/support/matchers.rb +++ b/spec/support/matchers.rb @@ -74,8 +74,7 @@ module Spec match do |actual| deprecations = actual.split(MAJOR_DEPRECATION) - return !expected.nil? if deprecations.size <= 1 - return true if expected.nil? + return !expected.nil? if deprecations.empty? deprecations.any? do |d| !d.empty? && values_match?(expected, d.strip) |