Sha256: ab1488e4c45446b1cea74c21dbd55d9efeb5bce9fac8e50a65e0010d867ea07a

Contents?: true

Size: 494 Bytes

Versions: 1

Compression:

Stored size: 494 Bytes

Contents

require 'spec_helper'

describe Differ::Format::Ascii do
  it 'should format inserts well' do
    @expected = '{+"SAMPLE"}'
    expect(Differ::Format::Ascii.call(+'SAMPLE')).to eq(@expected)
  end

  it 'should format deletes well' do
    @expected = '{-"SAMPLE"}'
    expect(Differ::Format::Ascii.call(-'SAMPLE')).to eq(@expected)
  end

  it 'should format changes well' do
    @expected = '{"THEN" >> "NOW"}'
    expect(Differ::Format::Ascii.call('THEN' >> 'NOW')).to eq(@expected)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ninja-differ-1.0.0 spec/differ/format/ascii_spec.rb