This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
features/built_in_matchers Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -39,36 +39,42 @@ Feature: Comparison matchers
39
39
And the output should contain:
40
40
"""
41
41
Failure/Error: it { is_expected.to be < 15 }
42
+
42
43
expected: < 15
43
44
got: 18
44
45
"""
45
46
And the output should contain:
46
47
"""
47
48
Failure/Error: it { is_expected.to be > 20 }
49
+
48
50
expected: > 20
49
51
got: 18
50
52
"""
51
53
And the output should contain:
52
54
"""
53
55
Failure/Error: it { is_expected.to be <= 17 }
56
+
54
57
expected: <= 17
55
58
got: 18
56
59
"""
57
60
And the output should contain:
58
61
"""
59
62
Failure/Error: it { is_expected.to be > = 19 }
63
+
60
64
expected: >= 19
61
65
got: 18
62
66
"""
63
67
And the output should contain:
64
68
"""
65
69
Failure/Error: it { is_expected.to be < 'a' }
70
+
66
71
expected: < "a"
67
72
got: 18
68
73
"""
69
74
And the output should contain:
70
75
"""
71
76
Failure/Error: it { is_expected.to be < 18 }
77
+
72
78
expected: < 18
73
79
got: "a"
74
80
"""
@@ -95,24 +101,28 @@ Feature: Comparison matchers
95
101
And the output should contain:
96
102
"""
97
103
Failure/Error: it { is_expected.to be < "Cranberry" }
104
+
98
105
expected: < "Cranberry"
99
106
got: "Strawberry"
100
107
"""
101
108
And the output should contain:
102
109
"""
103
110
Failure/Error: it { is_expected.to be > "Zuchini" }
111
+
104
112
expected: > "Zuchini"
105
113
got: "Strawberry"
106
114
"""
107
115
And the output should contain:
108
116
"""
109
117
Failure/Error: it { is_expected.to be <= "Potato" }
118
+
110
119
expected: <= "Potato"
111
120
got: "Strawberry"
112
121
"""
113
122
And the output should contain:
114
123
"""
115
124
Failure/Error: it { is_expected.to be > = "Tomato" }
125
+
116
126
expected: >= "Tomato"
117
127
got: "Strawberry"
118
128
"""
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ Feature: `contain_exactly` matcher
38
38
And the output should contain:
39
39
"""
40
40
Failure/Error: it { is_expected.to contain_exactly(1, 2, 1) }
41
+
41
42
expected collection contained: [1, 1, 2]
42
43
actual collection contained: [1, 2, 3]
43
44
the missing elements were: [1]
You can’t perform that action at this time.
0 commit comments