minitest-extra-matchers 0.0.3 → 0.0.4

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: d81073409d9ae529fa5452d8cad79833bd1acb2a
4
- data.tar.gz: c2ddb9f7d11bbd23b3c4f41ce6d0f2c228f614b5
3
+ metadata.gz: ffb38be769c41c79b734fe822ddda75cb1f8b556
4
+ data.tar.gz: 94b4038395f32dc70d5716b3f58d5a48c2898097
5
5
  SHA512:
6
- metadata.gz: 7d65d864a571472e5aa500c9808a108091216a244477a3b09a9d2e2b11800844e35e4eaeaeb0bc07a9d316b60ec69d2f8d45fbad8c6ef13d04ffa1bef30730c7
7
- data.tar.gz: 7c50051dba215bd94d7cdac9a4964d03cee9ff88b72795bd470aec141bf4568898b9aab9f99aebc2bba7853dd441415881c0c3ab03984c1a0aa67df9a19c1b4f
6
+ metadata.gz: 07db117c44464061d9a3c7276af61ffbe2144916ee4639ea40be94cd6de7ac37fbee8918671392a9253d76f8e4619ee0f66b39635ea961441d3bfd22894abaf8
7
+ data.tar.gz: 6ba63e7efafc82ad57677cc8f2c1ab6405fde76fdd6b21c8bfe1d076e8aa25186f602358bc0e1668e65781077b1ae1d7ffa202e5109132556391f277d5a9c547
@@ -0,0 +1,23 @@
1
+ module Minitest
2
+ module Extra
3
+ module Matchers
4
+ module Pending
5
+ def self.included(base)
6
+ base.extend ClassMethods
7
+ base.class_eval do
8
+ end
9
+ end
10
+
11
+ def pending
12
+ skip('Not yet implemented...')
13
+ end
14
+
15
+ module ClassMethods
16
+ def pending
17
+ it { pending }
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -15,10 +15,6 @@ module Minitest
15
15
  end
16
16
  end
17
17
 
18
- def pending
19
- skip('Not yet implemented...')
20
- end
21
-
22
18
  module ClassMethods
23
19
  def subject(name = nil, &block)
24
20
  if name
@@ -32,10 +28,6 @@ module Minitest
32
28
  def its(name, &block)
33
29
  it { subject.send(name).instance_eval(&block) }
34
30
  end
35
-
36
- def pending
37
- it { pending }
38
- end
39
31
  end
40
32
  end
41
33
  end
@@ -1,7 +1,7 @@
1
1
  module Minitest
2
2
  module Extra
3
3
  module Matchers
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
6
6
  end
7
7
  end
@@ -3,7 +3,8 @@ require "minitest/extra/matchers/version"
3
3
  module Minitest
4
4
  module Extra
5
5
  module Matchers
6
- # Your code goes here...
6
+ autoload Subject, 'minitest/extra/matchers/subject'
7
+ autoload Pending, 'minitest/extra/matchers/pending'
7
8
  end
8
9
  end
9
10
  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.3
4
+ version: 0.0.4
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-02-04 00:00:00.000000000 Z
11
+ date: 2014-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -67,6 +67,7 @@ files:
67
67
  - README.md
68
68
  - Rakefile
69
69
  - lib/minitest/extra/matchers.rb
70
+ - lib/minitest/extra/matchers/pending.rb
70
71
  - lib/minitest/extra/matchers/subject.rb
71
72
  - lib/minitest/extra/matchers/version.rb
72
73
  - minitest-extra-matchers.gemspec
@@ -90,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
91
  version: '0'
91
92
  requirements: []
92
93
  rubyforge_project:
93
- rubygems_version: 2.2.0
94
+ rubygems_version: 2.2.2
94
95
  signing_key:
95
96
  specification_version: 4
96
97
  summary: Extra matchers for MiniTest::Spec that simplify specs