diff --git a/lib/super_diff/rspec.rb b/lib/super_diff/rspec.rb index 36ff464..9a89a91 100644 --- a/lib/super_diff/rspec.rb +++ b/lib/super_diff/rspec.rb @@ -84,10 +84,15 @@ def self.aliased_matcher?(value) if SuperDiff::RSpec.rspec_version < '3.13.0' value.is_a?(::RSpec::Matchers::AliasedMatcher) else # See Github issue #250. - value.respond_to?(:base_matcher) + !ordered_options?(value) && value.respond_to?(:base_matcher) end end + def self.ordered_options?(value) + defined?(::ActiveSupport::OrderedOptions) && + value.is_a?(::ActiveSupport::OrderedOptions) + end + def self.rspec_version @rspec_version ||= begin