Sha256: f0aefa748fad7a9d5f90d223d979a4897180f3dfc63f0259e369cc46a2dbd838
Contents?: true
Size: 377 Bytes
Versions: 65
Compression:
Stored size: 377 Bytes
Contents
# frozen_string_literal: true require "rspec-html-matchers" RSpec::Matchers.define(:have_equivalent_markup_to) do |expected| cleaner = ->(str) { str.gsub(/>[[:space:]]*/, ">").gsub(/[[:space:]]*</, "<").strip } match do |actual| cleaner.call(expected) == cleaner.call(actual) end diffable end RSpec.configure do |config| config.include RSpecHtmlMatchers end
Version data entries
65 entries across 65 versions & 1 rubygems