Class: SuperDiff::RSpec::Differs::CollectionIncluding
- Inherits:
-
Basic::Differs::Array
- Object
- Core::AbstractDiffer
- Basic::Differs::Array
- SuperDiff::RSpec::Differs::CollectionIncluding
- Defined in:
- lib/super_diff/rspec/differs/collection_including.rb
Class Method Summary collapse
Methods inherited from Core::AbstractDiffer
Class Method Details
.applies_to?(expected, actual) ⇒ Boolean
7 8 9 10 11 12 |
# File 'lib/super_diff/rspec/differs/collection_including.rb', line 7 def self.applies_to?(expected, actual) ( SuperDiff::RSpec.a_collection_including_something?(expected) || SuperDiff::RSpec.array_including_something?(expected) ) && actual.is_a?(::Array) end |