rspec-abq 0.2.1 → 0.2.3

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: 2ba8b36702b47a05aa98804502a7050443fb867361e513f638f7c4e9565381d5
4
- data.tar.gz: 58c935e604bd8924d47f9a24061e18cf59cdf92930a6f509957a27b65f3c2599
3
+ metadata.gz: 5b557bc426714348e47f3ba73ee8e0ce0b6fafb5b4d3dc0c6e85a9ec3de1c5cc
4
+ data.tar.gz: b17052dbd54886a13af1321a2d734b9469fecb73f2a74705dc24e6aca7602dff
5
5
  SHA512:
6
- metadata.gz: bb7bd9a6ca27be92b253fdaeb48498d8a63a4f700819278c3968221d4b4b0d2f7fdbe8a7e72c0f0af3494705f5b5c2dfbfb67623e4b5866c46bf126454dc8125
7
- data.tar.gz: 745195f4be73d7d93499d50757b5f9e837d04b18a3973f6cd61c7c0e8d8721b7a8f3674744da57da004bb256c40c200f1f7fcc50693373d4d8a681e3b1ecf77d
6
+ metadata.gz: 35a9ea25c2d6d4120285cafb5aba218a1f31049f497c9b83e3ee8de97625bd32a1dcfb88a85b59d6dd0b1ed1d2bb66b5f59905408744d65a1e3788ccad1c0504
7
+ data.tar.gz: 89bea90930631ee7ad6b1e05fdc3507093af3deded8c74577f1162ce45099488ba1e455e8a8f89c340c20a66386cf8f19758f3ac039e8e06f6058821a87974e9
@@ -36,7 +36,13 @@ module RSpec
36
36
  instance = new(considered_example.inspect_output)
37
37
  set_ivars(instance, before_context_ivars)
38
38
 
39
- all_examples_succeeded &&= Abq.send_test_result_and_advance { |abq_reporter| considered_example.run(instance, abq_reporter) }
39
+ # note: it looks like we can inline the next two lines.
40
+ # DON'T DO IT!
41
+ # true &&= expression : expression will be run, fine!
42
+ # false &&= expression: expression will NOT be run! bad!
43
+ # we want to always run the test, even if the previous test failed.
44
+ result = Abq.send_test_result_and_advance { |abq_reporter| considered_example.run(instance, abq_reporter) }
45
+ all_examples_succeeded &&= result
40
46
 
41
47
  break unless Abq.target_test_case.directly_in_group?(self)
42
48
  end
@@ -1,6 +1,6 @@
1
1
  module RSpec
2
2
  module Abq
3
3
  # current version!
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.3"
5
5
  end
6
6
  end
data/lib/rspec/abq.rb CHANGED
@@ -113,7 +113,7 @@ module RSpec
113
113
  init_message = protocol_read
114
114
  protocol_write(INIT_SUCCESS_MESSAGE)
115
115
  # TODO: delete the check for empty init_meta when https://github.com/rwx-research/abq/pull/216 is merged
116
- if !init_message["fast_exit"] && init_message["init_meta"].any?
116
+ unless init_message["fast_exit"]
117
117
  Ordering.setup!(init_message["init_meta"], RSpec.configuration)
118
118
  fetch_next_example
119
119
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-abq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ayaz Hafiz