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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 966c93c0ae8ff663af8d9e3f8061b0bc31651c03
|
4
|
+
data.tar.gz: d1506e125961c67259f762c31b78a22f97939e38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -3,8 +3,9 @@ require "minitest/extra/matchers/version"
|
|
3
3
|
module Minitest
|
4
4
|
module Extra
|
5
5
|
module Matchers
|
6
|
-
autoload Subject,
|
7
|
-
autoload 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
|
+
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
|