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 +4 -4
- data/lib/minitest/extra/matchers/dom.rb +3 -3
- data/lib/minitest/extra/matchers/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7e223d8f462aaad7794d74b72f87a812d514224
|
4
|
+
data.tar.gz: 5a491949a4c8c6d98a608812778f22d972d7bb63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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).
|
15
|
-
actual_dom = Nokogiri::HTML(actual).
|
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).
|
21
|
+
actual = Nokogiri::HTML.fragment(element).child.attr(name)
|
22
22
|
|
23
23
|
assert_equal value, actual
|
24
24
|
end
|