rspec-abq 1.0.3 → 1.0.4
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 +4 -4
- data/lib/rspec/abq/extensions.rb +9 -2
- data/lib/rspec/abq/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32d3a96e24adf90ae8f04464daccb1458833022b7888eb9f0eb13d4f735cd186
|
4
|
+
data.tar.gz: 5aa909ff347fb5522a8716028bfc5f187355792e60392143c22bfa097017f4b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31765589e5cebda9567807ed17bcafa96be05d285b8d757e9611a5a77230a6a60ed5163dae008cfbc4a2d9228218639b7999181b2e67d11dfde6848b1791d604
|
7
|
+
data.tar.gz: 9a983dec557fb2f606bf68480b817cc4e75b3d5e318f9c0ed8af56bbaa1362e11706a27d7107788fd45fd1f9808b47f394ee3813132018916295946ec1595edb
|
data/lib/rspec/abq/extensions.rb
CHANGED
@@ -106,14 +106,21 @@ module RSpec
|
|
106
106
|
module Runner
|
107
107
|
# Runs the provided example groups.
|
108
108
|
#
|
109
|
-
# @param
|
109
|
+
# @param _example_groups [Array<RSpec::Core::ExampleGroup>] groups to run.
|
110
|
+
# Ignored in favor of @world.ordered_example_groups
|
110
111
|
# @return [Fixnum] exit status code. 0 if all specs passed,
|
111
112
|
# or the configured failure exit code (1 by default) if specs
|
112
113
|
# failed.
|
113
|
-
def run_specs(
|
114
|
+
def run_specs(_example_groups)
|
114
115
|
should_quit = RSpec::Abq.setup_after_specs_loaded!
|
115
116
|
return 0 if should_quit
|
116
117
|
|
118
|
+
# rspec-abq pulls the ordering from the init-message. Here we ensure the example groups are in the same ordering.
|
119
|
+
# RSpec passes to `run_specs` exactly the world ordered example groups:
|
120
|
+
# https://github.com/rspec/rspec-core/blob/522b7727d02d9648c090b56fa68bbdc18a21c04d/lib/rspec/core/runner.rb#L85-L92
|
121
|
+
# So this definition is safe.
|
122
|
+
example_groups = @world.ordered_example_groups
|
123
|
+
|
117
124
|
examples_count = @world.example_count(example_groups)
|
118
125
|
examples_passed = @configuration.reporter.report(examples_count) do |reporter|
|
119
126
|
@configuration.with_suite_hooks do
|
data/lib/rspec/abq/version.rb
CHANGED
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: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ayaz Hafiz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-12-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec-core
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '0'
|
91
91
|
requirements: []
|
92
|
-
rubygems_version: 3.
|
92
|
+
rubygems_version: 3.3.7
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: RSpec::Abq allows for parallel rspec runs using abq
|