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