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: 538d8663aae04d8ff9da6d3dd1e741c54bacfe21
4
- data.tar.gz: 83addd4560730ea277fd8c34e8edd9f612e5ef40
3
+ metadata.gz: 00c6562b5b477b2028a69a529c7b8b4687759d74
4
+ data.tar.gz: 7b31012c1938427aa97be448a2d91da4b4db330e
5
5
  SHA512:
6
- metadata.gz: db022632fe56c737c388cf04b5ad8f1b46311f00eafabd7382d39cd2c468789b7a774554603a84dbf9c51e65726ed1833f76b8c80f66708c04eb1118a796b614
7
- data.tar.gz: e4b0b3ad787c1b19902dd2a0968de2b0969bc966d6484f87f50e72c49b61ed0688db5d8a7e54a523cca63465bb7c7e6783b56b7c2c2bf9e1a57dbd47de609c2a
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
- infect_an_assertion :assert_dom_equal, :must_equal_dom
6
- infect_an_assertion :assert_attr_equal, :must_have_attr
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
- infect_an_assertion :assert_sent, :must_receive, :dont_flip
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
@@ -1,7 +1,7 @@
1
1
  module Minitest
2
2
  module Extra
3
3
  module Matchers
4
- VERSION = '0.0.13'
4
+ VERSION = '0.0.14'
5
5
  end
6
6
  end
7
7
  end
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.13
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-10-15 00:00:00.000000000 Z
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.4.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