minitest-extra-matchers 0.0.2 → 0.0.3

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: 04f2ad1c9e24e0149e435b9127548265b260af47
4
- data.tar.gz: 5327ce14f7d2071237857bd20402ae9ff5b5cfc7
3
+ metadata.gz: d81073409d9ae529fa5452d8cad79833bd1acb2a
4
+ data.tar.gz: c2ddb9f7d11bbd23b3c4f41ce6d0f2c228f614b5
5
5
  SHA512:
6
- metadata.gz: 8e7b9bbb527aa542a7d1d86530ce7568712e5e2dee84f1b2f0a62c4033181163a42b15cc5bbcc255b2476c549c1d51e5fe7bf2d2e71a81e51fbcf788bd585113
7
- data.tar.gz: b508f3d747215f22caa690c50fe684c3ccc1038806eb9260316fdffdf382885811015289df3b54c11d47131d8fe697d980008c1bfb8607a7ef940de78b055790
6
+ metadata.gz: 7d65d864a571472e5aa500c9808a108091216a244477a3b09a9d2e2b11800844e35e4eaeaeb0bc07a9d316b60ec69d2f8d45fbad8c6ef13d04ffa1bef30730c7
7
+ data.tar.gz: 7c50051dba215bd94d7cdac9a4964d03cee9ff88b72795bd470aec141bf4568898b9aab9f99aebc2bba7853dd441415881c0c3ab03984c1a0aa67df9a19c1b4f
@@ -1,37 +1,43 @@
1
- module Minitest::Extra::Matchers::Subject
2
- def self.included(base)
3
- base.extend ClassMethods
4
- base.class_eval do
5
- alias_method :context, :describe
6
- end
7
- end
1
+ module Minitest
2
+ module Extra
3
+ module Matchers
4
+ module Subject
5
+ def self.included(base)
6
+ base.extend ClassMethods
7
+ base.class_eval do
8
+ alias_method :context, :describe
9
+ end
10
+ end
8
11
 
9
- Minitest::Expectations.methods.grep(/^(must|wont)_/).each do |m|
10
- define_method m do |*args, &block|
11
- subject.send(m, *args, &block)
12
- end
13
- end
12
+ Minitest::Expectations.methods.grep(/^(must|wont)_/).each do |m|
13
+ define_method m do |*args, &block|
14
+ subject.send(m, *args, &block)
15
+ end
16
+ end
14
17
 
15
- def pending
16
- skip('Not yet implemented...')
17
- end
18
+ def pending
19
+ skip('Not yet implemented...')
20
+ end
18
21
 
19
- module ClassMethods
20
- def subject(name = nil, &block)
21
- if name
22
- let(name, &block)
23
- let(:subject) { send(name) }
24
- else
25
- let(:subject, &block)
26
- end
27
- end
22
+ module ClassMethods
23
+ def subject(name = nil, &block)
24
+ if name
25
+ let(name, &block)
26
+ let(:subject) { send(name) }
27
+ else
28
+ let(:subject, &block)
29
+ end
30
+ end
28
31
 
29
- def its(name, &block)
30
- it { subject.send(name).instance_eval(&block) }
31
- end
32
+ def its(name, &block)
33
+ it { subject.send(name).instance_eval(&block) }
34
+ end
32
35
 
33
- def pending
34
- it { pending }
36
+ def pending
37
+ it { pending }
38
+ end
39
+ end
40
+ end
35
41
  end
36
42
  end
37
43
  end
@@ -1,7 +1,7 @@
1
1
  module Minitest
2
2
  module Extra
3
3
  module Matchers
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Łukasz Niemier"