ex_aequo_rspex 0.1.6 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ex_aequo/rspex/macros/subject_macros.rb +18 -18
- data/lib/ex_aequo/rspex/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc9e0ca79fd0cec6240f8986e85c912660181b53324b76e415f92df4b0906e12
|
4
|
+
data.tar.gz: 3ccc5a81c86ac6a69d6bc69e858661f7b14698c206d5d84384fdef07d200cf58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85bb8b58f364085e1bce5db3d7d782cca930cc0f986a26989615637324ad1731c6667a4baa594d9b63e3c3a589c81f09cf27290ff54bc549af6e2b7de1dfee61
|
7
|
+
data.tar.gz: 797db0437121db2d75422fd8ee65a69d6a548672f36a7c2c105572f403ba59fc6411165a534c446b080b82642d4316a7d169b6bd30c9d3a606d1c9b37a184a38
|
@@ -5,15 +5,15 @@ module ExAequo
|
|
5
5
|
module Macros
|
6
6
|
module SubjectMacros
|
7
7
|
|
8
|
-
def it_eq(value,
|
9
|
-
specify
|
8
|
+
def it_eq(value, &blk)
|
9
|
+
specify do
|
10
10
|
it_eq(value, &blk)
|
11
11
|
end
|
12
12
|
end
|
13
13
|
alias_method :it_equals, :it_eq
|
14
14
|
|
15
15
|
def it_fails_spec(message=nil, with: RSpec::Expectations::ExpectationNotMetError, &blk)
|
16
|
-
specify
|
16
|
+
specify do
|
17
17
|
it_raises(with, message, &blk)
|
18
18
|
end
|
19
19
|
end
|
@@ -30,47 +30,47 @@ module ExAequo
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
def it_is_between(lower, higher,
|
34
|
-
specify
|
33
|
+
def it_is_between(lower, higher, &blk)
|
34
|
+
specify do
|
35
35
|
it_is_between(lower, higher, &blk)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
def it_is_false(
|
40
|
-
def it_is_falsy(
|
41
|
-
specify
|
39
|
+
def it_is_false(&blk) = it_eq(false, &blk)
|
40
|
+
def it_is_falsy(&blk)
|
41
|
+
specify do
|
42
42
|
it_is_falsy(&blk)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
-
def it_is_nil(
|
46
|
+
def it_is_nil(&blk) = it_eq(nil, &blk)
|
47
47
|
def it_is_not(predicate, *args, &blk)
|
48
48
|
specify do
|
49
49
|
it_is_not(predicate, *args, &blk)
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
def it_is_true(
|
54
|
-
def it_is_truthy(
|
55
|
-
specify
|
53
|
+
def it_is_true(&blk) = it_eq(true, &blk)
|
54
|
+
def it_is_truthy(&blk)
|
55
|
+
specify do
|
56
56
|
it_is_truthy(&blk)
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
def it_matches(matcher,
|
61
|
-
specify
|
60
|
+
def it_matches(matcher, &blk)
|
61
|
+
specify do
|
62
62
|
it_matches(matcher, &blk)
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
def it_raises(exception, message=nil
|
67
|
-
specify
|
66
|
+
def it_raises(exception, message=nil,&blk)
|
67
|
+
specify do
|
68
68
|
it_raises(exception, message, &blk)
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
-
def it_puts(lines, to: $stdout,
|
73
|
-
specify
|
72
|
+
def it_puts(lines, to: $stdout, &blk)
|
73
|
+
specify do
|
74
74
|
it_puts(lines, to:, &blk)
|
75
75
|
end
|
76
76
|
end
|