sus 0.24.3 → 0.24.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/sus/expect.rb +6 -2
- data/lib/sus/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e35e806178cbc4bdaafe01ff69c91542529a79667ef6e1835433f4d21f857282
|
4
|
+
data.tar.gz: 33ff171f0f50a94c31a33fb2610e01b88150efb755d4aafa1d48644a865be144
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f46d0abf2dd6200c30bbc232c27fadf88cb3e49f46b9bab00f133b4778a22a3db7b0cc417f5da288c8f3e5da77250ce4cf4265f54b06be188c224ea7de3fc600
|
7
|
+
data.tar.gz: 9885fbf0a2575930ee98e19540c3552b82fae9a7f11941e8c3050b42c9ccbec521e39c4b00105cdd7f74a8e6cf16e4f4788518fa69b1be5a55b1aa63ae1197db
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/sus/expect.rb
CHANGED
@@ -8,6 +8,10 @@ module Sus
|
|
8
8
|
def initialize(assertions, subject, inverted: false, distinct: false)
|
9
9
|
@assertions = assertions
|
10
10
|
@subject = subject
|
11
|
+
|
12
|
+
# We capture this here, as changes to state may cause the inspect output to change, affecting the output produced by #print.
|
13
|
+
@inspect = @subject.inspect
|
14
|
+
|
11
15
|
@inverted = inverted
|
12
16
|
@distinct = true
|
13
17
|
end
|
@@ -22,10 +26,10 @@ module Sus
|
|
22
26
|
end
|
23
27
|
|
24
28
|
def print(output)
|
25
|
-
output.write("expect ", :variable, @
|
29
|
+
output.write("expect ", :variable, @inspect, :reset, " ")
|
26
30
|
|
27
31
|
if @inverted
|
28
|
-
output.write("to
|
32
|
+
output.write("not to", :reset)
|
29
33
|
else
|
30
34
|
output.write("to", :reset)
|
31
35
|
end
|
data/lib/sus/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.24.
|
4
|
+
version: 0.24.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -38,7 +38,7 @@ cert_chain:
|
|
38
38
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
39
39
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
40
40
|
-----END CERTIFICATE-----
|
41
|
-
date: 2024-01-
|
41
|
+
date: 2024-01-26 00:00:00.000000000 Z
|
42
42
|
dependencies: []
|
43
43
|
description:
|
44
44
|
email:
|
metadata.gz.sig
CHANGED
Binary file
|