Sha256: 30d08e30bdbcffb6bbb6cdeb9b7dc76239710046b0e6b3b696c72d74fae14654
Contents?: true
Size: 459 Bytes
Versions: 4
Compression:
Stored size: 459 Bytes
Contents
require 'inky' require 'rexml/document' def compare(input, expected) inky = Inky::Core.new output = inky.release_the_kraken(input) # TODO: Figure out a better way to do html compare in ruby.. # this is overly dependent on things like class ordering, making it # fragile output_str = REXML::Document.new(output).to_s.gsub(/\s/, '') expected_str = REXML::Document.new(expected).to_s.gsub(/\s/, '') expect(output_str).to eql(expected_str) end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
inky-rb-1.3.6.1 | spec/spec_helper.rb |
inky-rb-1.3.6.0 | spec/spec_helper.rb |
inky-rb-0.0.3 | spec/spec_helper.rb |
inky-rb-0.0.2 | spec/spec_helper.rb |