Class: SuperDiff::RSpec::Differs::HashIncluding
- Inherits:
-
Differs::Hash
- Object
- Differs::Base
- Differs::Hash
- SuperDiff::RSpec::Differs::HashIncluding
- Defined in:
- lib/super_diff/rspec/differs/hash_including.rb
Class Method Summary collapse
Methods inherited from Differs::Base
Class Method Details
.applies_to?(expected, actual) ⇒ Boolean
5 6 7 8 9 10 |
# File 'lib/super_diff/rspec/differs/hash_including.rb', line 5 def self.applies_to?(expected, actual) ( SuperDiff::RSpec.a_hash_including_something?(expected) || SuperDiff::RSpec.hash_including_something?(expected) ) && actual.is_a?(::Hash) end |