spectre-core 1.14.1 → 1.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spectre/assertion.rb +3 -3
- data/lib/spectre/helpers.rb +3 -2
- data/lib/spectre.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1d19a96bd18baeb678abc3670c744bbd8855b4680db1e05bd57dcd99dfc3f21
|
4
|
+
data.tar.gz: db9f3efd3faf3bf571845b1ae340a133ee9a95065cec2b8469d28b0a76985996
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcfa21488bfce34984bac2efa1bc7fa73d703eb84d730497edef928fd9eea35be33abe9774d3becf38a1424d2e347728b5627ec1d053ac69e19b82b8b937decb
|
7
|
+
data.tar.gz: af9018490eb268a7820419e597ea2eb5d8887ed7606c28bb7180e28245347f8d4fe630e26028113a39fd8ad7b54744b20687376fa1c386102ded67bb4ee38874
|
data/lib/spectre/assertion.rb
CHANGED
@@ -101,8 +101,8 @@ module Spectre
|
|
101
101
|
val = OpenStruct.new(val)
|
102
102
|
end
|
103
103
|
|
104
|
-
evaluate(val, "#{
|
105
|
-
|
104
|
+
evaluate(val, "#{list} should contain #{val.to_s}") do |x|
|
105
|
+
list.include? x
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
@@ -138,7 +138,7 @@ module Spectre
|
|
138
138
|
end
|
139
139
|
|
140
140
|
def should_not_be(val)
|
141
|
-
evaluate(
|
141
|
+
evaluate(val, "'#{self}' should not be '#{val}'") do |x|
|
142
142
|
self.to_s != x.to_s
|
143
143
|
end
|
144
144
|
end
|
data/lib/spectre/helpers.rb
CHANGED
data/lib/spectre.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectre-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Neubauer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ectoplasm
|