sus 0.24.2 → 0.24.3
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/be.rb +5 -1
- data/lib/sus/have.rb +1 -1
- data/lib/sus/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: a211ce538f3e1c9d4c5ae3e75f77e4209ca0a0387eec6069c914f891d734bdbd
|
4
|
+
data.tar.gz: 23b4244bc9552bc5f796df831269823b4d68b7e0bf95ea58d20be1eeeb6fe9e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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/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.
|
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
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.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:
|
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.
|
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
|