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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a211ce538f3e1c9d4c5ae3e75f77e4209ca0a0387eec6069c914f891d734bdbd
4
- data.tar.gz: 23b4244bc9552bc5f796df831269823b4d68b7e0bf95ea58d20be1eeeb6fe9e4
3
+ metadata.gz: e35e806178cbc4bdaafe01ff69c91542529a79667ef6e1835433f4d21f857282
4
+ data.tar.gz: 33ff171f0f50a94c31a33fb2610e01b88150efb755d4aafa1d48644a865be144
5
5
  SHA512:
6
- metadata.gz: df8a5038b85ba56492ada143828a830472a8143351b131948397a7a1fcd916f8a2c9cc9a960717a621065cc43304500d637bed2ef85fe79e2fe0705766e53e5a
7
- data.tar.gz: 63c761793fa298c19b86e753975fe7b7f430f2f61a60cc99eb73df470379865ce45df5e943ef669edb50337aaa7c0d43a095e507cce5987d461f338bfa43f730
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, @subject.inspect, :reset, " ")
29
+ output.write("expect ", :variable, @inspect, :reset, " ")
26
30
 
27
31
  if @inverted
28
- output.write("to not", :reset)
32
+ output.write("not to", :reset)
29
33
  else
30
34
  output.write("to", :reset)
31
35
  end
data/lib/sus/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2021-2023, by Samuel Williams.
5
5
 
6
6
  module Sus
7
- VERSION = "0.24.3"
7
+ VERSION = "0.24.4"
8
8
  end
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.3
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-24 00:00:00.000000000 Z
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