minitest-extra-matchers 0.0.13 → 0.0.14
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00c6562b5b477b2028a69a529c7b8b4687759d74
|
4
|
+
data.tar.gz: 7b31012c1938427aa97be448a2d91da4b4db330e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b278ca5d70954dff910496e5047306ed9eb20a79dc794c77721e277f49aa839ac29c84830332e3923ee23892b682471d9f7166bc2db1a5a5def70c4c6bb73984
|
7
|
+
data.tar.gz: 0e0d91902d40b8b57c5917ec186e7c9ab2318806172f5013753069422bfd40aa0c87b392b237d723814dce3408c7217743a55619291afa63a459878e2a73f064
|
@@ -2,8 +2,10 @@ module Minitest
|
|
2
2
|
module Extra
|
3
3
|
module Matchers
|
4
4
|
module DOM
|
5
|
-
|
6
|
-
|
5
|
+
def self.included(_)
|
6
|
+
Object.infect_an_assertion :assert_dom_equal, :must_equal_dom
|
7
|
+
Object.infect_an_assertion :assert_attr_equal, :must_have_attr
|
8
|
+
end
|
7
9
|
|
8
10
|
def assert_dom_equal(expected, actual)
|
9
11
|
expected_dom = Nokogiri::HTML.fragment(expected).child
|
@@ -2,7 +2,9 @@ module Minitest
|
|
2
2
|
module Extra
|
3
3
|
module Matchers
|
4
4
|
module Received
|
5
|
-
|
5
|
+
def self.included(_)
|
6
|
+
Object.infect_an_assertion :assert_sent, :must_receive, :dont_flip
|
7
|
+
end
|
6
8
|
|
7
9
|
def assert_sent(to, method)
|
8
10
|
assert_received to, &method
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-extra-matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Łukasz Niemier"
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.2.2
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Extra matchers for MiniTest::Spec that simplify specs
|