Sha256: 56456e34ddd8e21b074f3239ac189f088aa2bbedeab10fb0198b1e442a0c85f8
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
require 'rubygems' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'differ' RSpec.configure do |config| # config.order = 'random' # config.profile_examples = 3 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 # this breaks rspec currently # undefined method `call' for nil:NilClass # def -@ # Differ::Change.new(:delete => self) # end def >>(to) Differ::Change.new(:delete => self, :insert => to) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ninja-differ-1.0.0 | spec/spec_helper.rb |