sus 0.35.0 → 0.35.2

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: e68f73a268f03439168f0ce3daec5a802174d6ada57de7e03d8362d2102eb3b2
4
- data.tar.gz: 273c4098c1a760fa81525302d38f985f2f07ad630c2ddced74db4c1fd67ce030
3
+ metadata.gz: 38873e75813a38f0b6a1d95006cf285ad40deabf372ea4dd6014e0ab41d994a9
4
+ data.tar.gz: 9d9bb3cbf3dc3eaba78d5ebe4880f3cef862cffbbb50f7760e27a994776c2ed4
5
5
  SHA512:
6
- metadata.gz: c7f993c9daea1b833f4f34ec5e5c0cee6898fda975c0ea0850f907c45f325533b26ba6ddcda394125f33e03ea601cd4c7db8e42a09a38de3fee4ff4e7ba19b89
7
- data.tar.gz: 7e8eb36690ba2e85686efa0b955755a5b587619803bb8f953b8b2c2ba11576733044d7b5255047d2ac3734ef9a5e84b86adf45c10a758bb2d22baf30661e3fa3
6
+ metadata.gz: 3e6bc26c14aaf3be9b3232eda519a47fa05b659ff4baf501da3c830548ead2e4125ab0e37c7a28693fd5fce93fd0aa122ea09ce3843a939170de4f1726f6decd
7
+ data.tar.gz: 100146d5119b3bdff4cfb924173385338dfba86ea1d65f11bd5270422d872185532c59857971e14afeeea2d0212e02d44b7449b1dedd1318030d1e5e41524a04
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/sus/config.rb CHANGED
@@ -168,11 +168,14 @@ module Sus
168
168
 
169
169
  print_finished_statistics(output, assertions)
170
170
 
171
- if !partial? and assertions.passed?
172
- print_test_feedback(output, assertions)
171
+ unless assertions.count.zero?
172
+ if !partial? and assertions.passed?
173
+ print_test_feedback(output, assertions)
174
+ end
175
+
176
+ print_slow_tests(output, assertions)
173
177
  end
174
178
 
175
- print_slow_tests(output, assertions)
176
179
  print_failed_assertions(output, assertions)
177
180
  end
178
181
 
@@ -181,9 +184,13 @@ module Sus
181
184
  # @parameter assertions [Assertions] The assertions instance.
182
185
  def print_finished_statistics(output, assertions)
183
186
  duration = @clock.duration
184
- rate = assertions.count / duration
185
187
 
186
- output.puts "🏁 Finished in ", @clock, "; #{rate.round(3)} assertions per second."
188
+ if assertions.count.zero?
189
+ output.puts "🏴 Finished in ", @clock, "."
190
+ else
191
+ rate = assertions.count / duration
192
+ output.puts "🏁 Finished in ", @clock, "; #{rate.round(3)} assertions per second."
193
+ end
187
194
  end
188
195
 
189
196
  # Print feedback about the test suite.
data/lib/sus/version.rb CHANGED
@@ -5,5 +5,5 @@
5
5
 
6
6
  # @namespace
7
7
  module Sus
8
- VERSION = "0.35.0"
8
+ VERSION = "0.35.2"
9
9
  end
data/releases.md CHANGED
@@ -18,7 +18,7 @@ The `receive` predicate has been enhanced to support blocks and the `and_raise`
18
18
 
19
19
  ``` ruby
20
20
  # `receive` with a block:
21
- expect(interface).to receive(:implementation) {10}
21
+ expect(interface).to receive(:implementation){10}
22
22
 
23
23
  # `and_return` with a block:
24
24
  expect(interface).to receive(:implementation).and_return{FakeImplementation.new}
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.35.0
4
+ version: 0.35.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubygems_version: 3.6.9
128
+ rubygems_version: 4.0.3
129
129
  specification_version: 4
130
130
  summary: A fast and scalable test runner.
131
131
  test_files: []
metadata.gz.sig CHANGED
Binary file