minitest-matchers 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/Rakefile +2 -0
- data/lib/minitest/matchers.rb +3 -3
- metadata +17 -6
data/History.txt
CHANGED
data/Rakefile
CHANGED
data/lib/minitest/matchers.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require "minitest/spec"
|
2
2
|
|
3
3
|
module MiniTest::Matchers
|
4
|
-
VERSION = "1.0.
|
4
|
+
VERSION = "1.0.3"
|
5
5
|
|
6
6
|
def must &block
|
7
7
|
matcher = yield
|
@@ -28,9 +28,9 @@ module MiniTest::Matchers
|
|
28
28
|
|
29
29
|
it "wont #{matcher.description}" do
|
30
30
|
result = if matcher.respond_to? :does_not_match?
|
31
|
-
|
31
|
+
matcher.does_not_match?(subject)
|
32
32
|
else
|
33
|
-
|
33
|
+
!matcher.matches?(subject)
|
34
34
|
end
|
35
35
|
|
36
36
|
failure_message = if matcher.respond_to? :negative_failure_message
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,22 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-09-
|
13
|
+
date: 2011-09-05 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|
17
|
-
requirement: &
|
17
|
+
requirement: &70212276375280 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.5.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *70212276375280
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: minitest
|
28
|
+
requirement: &70212276374860 !ruby/object:Gem::Requirement
|
18
29
|
none: false
|
19
30
|
requirements:
|
20
31
|
- - ~>
|
@@ -22,10 +33,10 @@ dependencies:
|
|
22
33
|
version: '1.6'
|
23
34
|
type: :development
|
24
35
|
prerelease: false
|
25
|
-
version_requirements: *
|
36
|
+
version_requirements: *70212276374860
|
26
37
|
- !ruby/object:Gem::Dependency
|
27
38
|
name: hoe
|
28
|
-
requirement: &
|
39
|
+
requirement: &70212276374440 !ruby/object:Gem::Requirement
|
29
40
|
none: false
|
30
41
|
requirements:
|
31
42
|
- - ~>
|
@@ -33,7 +44,7 @@ dependencies:
|
|
33
44
|
version: '2.12'
|
34
45
|
type: :development
|
35
46
|
prerelease: false
|
36
|
-
version_requirements: *
|
47
|
+
version_requirements: *70212276374440
|
37
48
|
description: ! 'minitest-matchers adds support for RSpec/Shoulda-style matchers to
|
38
49
|
|
39
50
|
MiniTest::Spec.
|