Class: SuperDiff::RSpec::Differs::CollectionContainingExactly

Inherits:
Basic::Differs::Array show all
Defined in:
lib/super_diff/rspec/differs/collection_containing_exactly.rb

Class Method Summary collapse

Methods inherited from Core::AbstractDiffer

#call

Class Method Details

.applies_to?(expected, actual) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
10
11
# File 'lib/super_diff/rspec/differs/collection_containing_exactly.rb', line 7

def self.applies_to?(expected, actual)
  SuperDiff::RSpec.a_collection_containing_exactly_something?(
    expected
  ) && actual.is_a?(::Array)
end