Sha256: c0c1b71062bfe4074a127fd9a239f4b77f1538d1cbc9ec1dd9c537d1ae78122b
Contents?: true
Size: 485 Bytes
Versions: 3
Compression:
Stored size: 485 Bytes
Contents
require 'spec_helper' describe Differ::Format::Ascii do it 'should format inserts well' do @expected = '{+"SAMPLE"}' Differ::Format::Ascii.format(+'SAMPLE').should == @expected end it 'should format deletes well' do @expected = '{-"SAMPLE"}' Differ::Format::Ascii.format(-'SAMPLE').should == @expected end it 'should format changes well' do @expected = '{"THEN" >> "NOW"}' Differ::Format::Ascii.format('THEN' >> 'NOW').should == @expected end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
pvande-differ-0.1.1 | spec/differ/format/ascii_spec.rb |
differ-0.1.2 | spec/differ/format/ascii_spec.rb |
differ-0.1.1 | spec/differ/format/ascii_spec.rb |