require 'spec_helper' describe Differ::Format::HTML do it 'should format inserts well' do @expected = 'SAMPLE' expect(Differ::Format::HTML.call(Differ::Change.new(:insert => 'SAMPLE'))).to eq(@expected) end it 'should format deletes well' do @expected = 'SAMPLE' expect(Differ::Format::HTML.call(Differ::Change.new(:delete => 'SAMPLE'))).to eq(@expected) end it 'should format changes well' do @expected = 'THENNOW' expect(Differ::Format::HTML.call(Differ::Change.new(:delete => 'THEN', :insert => 'NOW'))).to eq(@expected) end end