require 'spec_helper'
describe Differ::Format::HTML do
it 'should format inserts well' do
@expected = 'SAMPLE'
Differ::Format::HTML.format(+'SAMPLE').should == @expected
end
it 'should format deletes well' do
@expected = 'SAMPLE'
Differ::Format::HTML.format(-'SAMPLE').should == @expected
end
it 'should format changes well' do
@expected = 'THENNOW'
Differ::Format::HTML.format('THEN' >> 'NOW').should == @expected
end
end