Class: SuperDiff::RSpec::OperationTreeBuilders::CollectionContainingExactly
- Inherits:
-
OperationTreeBuilders::Base
- Object
- OperationTreeBuilders::Base
- SuperDiff::RSpec::OperationTreeBuilders::CollectionContainingExactly
- Defined in:
- lib/super_diff/rspec/operation_tree_builders/collection_containing_exactly.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(actual:) ⇒ CollectionContainingExactly
constructor
A new instance of CollectionContainingExactly.
Methods inherited from OperationTreeBuilders::Base
Constructor Details
#initialize(actual:) ⇒ CollectionContainingExactly
Returns a new instance of CollectionContainingExactly.
11 12 13 14 |
# File 'lib/super_diff/rspec/operation_tree_builders/collection_containing_exactly.rb', line 11 def initialize(actual:, **) super populate_pairings_maximizer_in_expected_with(actual) end |
Class Method Details
.applies_to?(expected, actual) ⇒ Boolean
5 6 7 8 9 |
# File 'lib/super_diff/rspec/operation_tree_builders/collection_containing_exactly.rb', line 5 def self.applies_to?(expected, actual) SuperDiff::RSpec.a_collection_containing_exactly_something?( expected ) && actual.is_a?(::Array) end |