minitest-extra-matchers 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3e2cbbf7fc4b2c3262e96984114920e084aa572
4
- data.tar.gz: fd8b433817de91c85d4947f6c5046f39fca7f960
3
+ metadata.gz: a7e223d8f462aaad7794d74b72f87a812d514224
4
+ data.tar.gz: 5a491949a4c8c6d98a608812778f22d972d7bb63
5
5
  SHA512:
6
- metadata.gz: 881be7831fb023c8d3b665bcaeb9fb5c3a6df775e2d26a46c995718a874e80cc1c1efb0776bef4d435574806afc24ce71acf6c797f7493de31c9cc3791320786
7
- data.tar.gz: 9ee362a4362c60a337e5c3541849f6b4ba7b9aa6e4cebbf5c33c1fcebc67b4aa0594c94b66dd60b238c8f1ee58bf3c3e206456e9b4e74c46f1eacce201dd01bb
6
+ metadata.gz: 0622ea8374dea39dff94c1732e88430e18af8f9d4720231c37004d5e1cd5b9046a207266e7cd435a1043410a0eccb87fb7c41fa46709514342cb492f272dc48e
7
+ data.tar.gz: 1202c11e110454902454d5e5a2cf0965e4cd8ddb76a10ac19ee03902a9ba9ebe16816b986e8148183d7bdf5a503b3b18d5d10c499b3bdb7311f8b9cf0751ddfa
@@ -11,14 +11,14 @@ module Minitest
11
11
  end
12
12
 
13
13
  def assert_dom_equal(expected, actual)
14
- expected_dom = Nokogiri::HTML(expected).root
15
- actual_dom = Nokogiri::HTML(actual).root
14
+ expected_dom = Nokogiri::HTML.fragment(expected).child
15
+ actual_dom = Nokogiri::HTML.fragment(actual).child
16
16
 
17
17
  assert_equal expected_dom, actual_dom
18
18
  end
19
19
 
20
20
  def assert_attribute_equal(element, name, value)
21
- actual = Nokogiri::HTML(element).root.attribute(name)
21
+ actual = Nokogiri::HTML.fragment(element).child.attr(name)
22
22
 
23
23
  assert_equal value, actual
24
24
  end
@@ -1,7 +1,7 @@
1
1
  module Minitest
2
2
  module Extra
3
3
  module Matchers
4
- VERSION = '0.0.10'
4
+ VERSION = '0.0.11'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-extra-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Łukasz Niemier"