Method: RSpec::Matchers::MultiMatcherDiff.from
- Defined in:
- lib/rspec/matchers/multi_matcher_diff.rb
.from(expected, actual) ⇒ RSpec::Matchers::MultiMatcherDiff
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Wraps provided expected value in instance of MultiMatcherDiff. If provided value is already an MultiMatcherDiff then it just returns it.
27 28 29 30 |
# File 'lib/rspec/matchers/multi_matcher_diff.rb', line 27 def self.from(expected, actual) return expected if self === expected new([[expected, DEFAULT_DIFF_LABEL, actual]]) end |