Sha256: 757bc413b0f3115b47d1bf47d36601cb9830d35140a01d05f2f0ff1615a3ee21

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

require 'inky'

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 = Nokogiri::XML(output).to_s.gsub(/\s/, '')
  expected_str = Nokogiri::XML(expected).to_s.gsub(/\s/, '')
  expect(output_str).to eql(expected_str)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inky-rb-1.3.6.2 spec/spec_helper.rb