Sha256: 078e46de30f7ed16fbe5fa8b2563e030a69d068c3c30c53bf8a8998ab93d33fa
Contents?: true
Size: 675 Bytes
Versions: 1
Compression:
Stored size: 675 Bytes
Contents
require 'spec_helper' describe Differ::Format::HTML do it 'should format inserts well' do @expected = '<ins class="differ">SAMPLE</ins>' expect(Differ::Format::HTML.call(Differ::Change.new(:insert => 'SAMPLE'))).to eq(@expected) end it 'should format deletes well' do @expected = '<del class="differ">SAMPLE</del>' expect(Differ::Format::HTML.call(Differ::Change.new(:delete => 'SAMPLE'))).to eq(@expected) end it 'should format changes well' do @expected = '<del class="differ">THEN</del><ins class="differ">NOW</ins>' expect(Differ::Format::HTML.call(Differ::Change.new(:delete => 'THEN', :insert => '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/html_spec.rb |