minitest-extra-matchers 0.0.4 → 0.0.5

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: ffb38be769c41c79b734fe822ddda75cb1f8b556
4
- data.tar.gz: 94b4038395f32dc70d5716b3f58d5a48c2898097
3
+ metadata.gz: 966c93c0ae8ff663af8d9e3f8061b0bc31651c03
4
+ data.tar.gz: d1506e125961c67259f762c31b78a22f97939e38
5
5
  SHA512:
6
- metadata.gz: 07db117c44464061d9a3c7276af61ffbe2144916ee4639ea40be94cd6de7ac37fbee8918671392a9253d76f8e4619ee0f66b39635ea961441d3bfd22894abaf8
7
- data.tar.gz: 6ba63e7efafc82ad57677cc8f2c1ab6405fde76fdd6b21c8bfe1d076e8aa25186f602358bc0e1668e65781077b1ae1d7ffa202e5109132556391f277d5a9c547
6
+ metadata.gz: b50dbb8fd2eff7544d6a623f41b21bf132454408e2e089b0f601d5f9911060893f9eb95dc5afc293a409ec059604f384f4cec100c4312d81b3252a6bf9978dc3
7
+ data.tar.gz: d51c884824ee9c75ed19af816a3f73f48fec4f7d997f51bf2798532f40d4b6183fb8090eccaa9a8c57bfb35bd8f86f9f92530e860ed60209b44f0ed3db18bea9
@@ -0,0 +1,17 @@
1
+ module Minitest
2
+ module Extra
3
+ module Matchers
4
+ module Receive
5
+ def self.included(base)
6
+ base.class_eval do
7
+ infect_an_assertion :assert_sent, :must_receive, :dont_flip
8
+ end
9
+ end
10
+
11
+ def assert_sent(to, method)
12
+ assert_received to, &method
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,7 +1,7 @@
1
1
  module Minitest
2
2
  module Extra
3
3
  module Matchers
4
- VERSION = "0.0.4"
4
+ VERSION = "0.0.5"
5
5
  end
6
6
  end
7
7
  end
@@ -3,8 +3,9 @@ require "minitest/extra/matchers/version"
3
3
  module Minitest
4
4
  module Extra
5
5
  module Matchers
6
- autoload Subject, 'minitest/extra/matchers/subject'
7
- autoload Pending, 'minitest/extra/matchers/pending'
6
+ autoload :Subject, 'minitest/extra/matchers/subject'
7
+ autoload :Pending, 'minitest/extra/matchers/pending'
8
+ autoload :Received, 'minitest/extra/matchers/received'
8
9
  end
9
10
  end
10
11
  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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Łukasz Niemier"
@@ -68,6 +68,7 @@ files:
68
68
  - Rakefile
69
69
  - lib/minitest/extra/matchers.rb
70
70
  - lib/minitest/extra/matchers/pending.rb
71
+ - lib/minitest/extra/matchers/received.rb
71
72
  - lib/minitest/extra/matchers/subject.rb
72
73
  - lib/minitest/extra/matchers/version.rb
73
74
  - minitest-extra-matchers.gemspec