sus 0.24.1 → 0.24.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a51f0e1c8e4e567fdaad568ceb90509c9d22cde5025111108bff22b7ec78c950
4
- data.tar.gz: abc2b6d94d889d9ac77e03482d4227300bfc4aaa6e4bb939bc6189da8d7903d8
3
+ metadata.gz: a211ce538f3e1c9d4c5ae3e75f77e4209ca0a0387eec6069c914f891d734bdbd
4
+ data.tar.gz: 23b4244bc9552bc5f796df831269823b4d68b7e0bf95ea58d20be1eeeb6fe9e4
5
5
  SHA512:
6
- metadata.gz: ffb608732ad61832453bc3636eb637d80cfff8a99179ecb85ca558d6c57fa65b1e145e6665f06d7fb97843adfbb7cbd36045627ca8d90e904d6f236f1cec6ad8
7
- data.tar.gz: 670b5dfaf1450209395a0913bdd19ec07861eccdca455932d09839b1a70fd7787d9001fe57976d21e09faa2e284d9e4a1d747a6e59c24c8a4c9926c32fe8bf75
6
+ metadata.gz: df8a5038b85ba56492ada143828a830472a8143351b131948397a7a1fcd916f8a2c9cc9a960717a621065cc43304500d637bed2ef85fe79e2fe0705766e53e5a
7
+ data.tar.gz: 63c761793fa298c19b86e753975fe7b7f430f2f61a60cc99eb73df470379865ce45df5e943ef669edb50337aaa7c0d43a095e507cce5987d461f338bfa43f730
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/sus/be.rb CHANGED
@@ -12,7 +12,11 @@ module Sus
12
12
  def print(output)
13
13
  operation, *arguments = *@arguments
14
14
 
15
- output.write("be ", :be, operation.to_s, :reset, " ", :variable, arguments.map(&:inspect).join, :reset)
15
+ output.write("be ", :be, operation.to_s, :reset)
16
+
17
+ if arguments.any?
18
+ output.write(" ", :variable, arguments.map(&:inspect).join, :reset)
19
+ end
16
20
  end
17
21
 
18
22
  def call(assertions, subject)
data/lib/sus/context.rb CHANGED
@@ -47,7 +47,7 @@ module Sus
47
47
  end
48
48
 
49
49
  def print(output)
50
- output.write("context", :context, self.description)
50
+ output.write("context ", :context, self.description, :reset)
51
51
  end
52
52
 
53
53
  def full_name
data/lib/sus/have.rb CHANGED
@@ -42,7 +42,7 @@ module Sus
42
42
  assertions.nested(self) do |assertions|
43
43
  assertions.assert(subject.respond_to?(@name), "has attribute")
44
44
  if @predicate
45
- Expect.new(assertions, subject.send(@name)).to(@predicate)
45
+ Expect.new(assertions, subject.public_send(@name)).to(@predicate)
46
46
  end
47
47
  end
48
48
  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.1"
7
+ VERSION = "0.24.3"
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.1
4
+ version: 0.24.3
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: 2023-12-08 00:00:00.000000000 Z
41
+ date: 2024-01-24 00:00:00.000000000 Z
42
42
  dependencies: []
43
43
  description:
44
44
  email:
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.4.22
124
+ rubygems_version: 3.5.3
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: A fast and scalable test runner.
metadata.gz.sig CHANGED
Binary file