Sha256: af1fac9306d8d2456f79770444c4eefe0dbfaf13d600eee532a32a027803f191

Contents?: true

Size: 578 Bytes

Versions: 18

Compression:

Stored size: 578 Bytes

Contents

module DomEquivalence
  extend RSpec::Matchers::DSL

  matcher :match_dom_of do |target|
    match_unless_raises ActiveSupport::TestCase::Assertion do |source|
      assert_dom_equal source, target
    end

    failure_message do |source|
      "Expected #{source} to have equivalent DOM to #{target}"
    end

    failure_message_when_negated do |source|
      "Expected #{source} not to have equivalent DOM to #{target}"
    end

    description do
      "should be DOM equivalent to #{target}"
    end
  end
end


class RSpec::Core::ExampleGroup
  include DomEquivalence
end

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
calagator-1.0.0 spec/support/assert_dom_equal.rb
grokus-1.0.0.9 spec/support/assert_dom_equal.rb
grokus-1.0.0.8 spec/support/assert_dom_equal.rb
grokus-1.0.0.7 spec/support/assert_dom_equal.rb
grokus-1.0.0.6 spec/support/assert_dom_equal.rb
grokus-1.0.0.5 spec/support/assert_dom_equal.rb
grokus-1.0.0.3 spec/support/assert_dom_equal.rb
grokus-1.0.0.2 spec/support/assert_dom_equal.rb
grokus-1.0.0.1 spec/support/assert_dom_equal.rb
xing-backend-1.0.0.pre.beta lib/xing/spec_helpers/dom_equiv.rb
xing-backend-0.0.25 lib/xing/spec_helpers/dom_equiv.rb
xing-backend-0.0.23 lib/xing/spec_helpers/dom_equiv.rb
xing-backend-0.0.22 lib/xing/spec_helpers/dom_equiv.rb
xing-backend-0.0.21 lib/xing/spec_helpers/dom_equiv.rb
xing-backend-0.0.20 lib/xing/spec_helpers/dom_equiv.rb
calagator-1.0.0.rc3 spec/support/assert_dom_equal.rb
calagator-1.0.0.rc2 spec/support/assert_dom_equal.rb
calagator-1.0.0.rc1 spec/support/assert_dom_equal.rb