Sha256: fa6b341dd3cc1fdd92404aa51a3ab8f1735dba854ce89c5ab8d878c2dc9df9f5
Contents?: true
Size: 497 Bytes
Versions: 3
Compression:
Stored size: 497 Bytes
Contents
# this is the null differ class Specdiff::Differ::NotFound def self.diff(a, b) comparison = "!=" comparison = "==" if a.value == b.value a_representation = _representation_for(a) b_representation = _representation_for(b) "#{a_representation} #{comparison} #{b_representation}" end def self._representation_for(side) if side.type == :binary "<binary content>" else side.value.inspect end end def self.stringify(diff) diff.raw end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
specdiff-0.3.0 | lib/specdiff/differ/not_found.rb |
specdiff-0.3.0.rc2 | lib/specdiff/differ/not_found.rb |
specdiff-0.3.0.pre.rc1 | lib/specdiff/differ/not_found.rb |