Sha256: c31f5bcac9f544c54fee0df9ca20189f19d211c2bf8a4163ae6f99e0c5105584
Contents?: true
Size: 577 Bytes
Versions: 1
Compression:
Stored size: 577 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
calagator-1.1.0 | spec/support/assert_dom_equal.rb |