Sha256: 5b70ef0b76ff33361ff3ee4a1a11836228e97484da347bf2418d4d27409b14df

Contents?: true

Size: 488 Bytes

Versions: 3

Compression:

Stored size: 488 Bytes

Contents

require 'rubygems'

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'differ'

Spec::Runner.configure do |config|

end

def diff(*parts)
  x = Differ::Diff.new
  x.instance_variable_set(:@raw, parts)
  return x
end

class String
  def +@
    Differ::Change.new(:insert => self)
  end

  def -@
    Differ::Change.new(:delete => self)
  end

  def >>(to)
    Differ::Change.new(:delete => self, :insert => to)
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
pvande-differ-0.1.1 spec/spec_helper.rb
differ-0.1.2 spec/spec_helper.rb
differ-0.1.1 spec/spec_helper.rb