mutant-rspec 0.11.20 → 0.11.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mutant/integration/rspec.rb +6 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e97b6301b29a9f982313eacdd63ed18981f093999ace5d4198ff9920b655588
|
4
|
+
data.tar.gz: e3199458460374d71372d1195eef9010e247e94d4adc10c93b9ad8bf68f1a6f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24490600eb86d39ff456fc257bb9577b11593cd6aad64bd859ccbc29cf4d59328f8cdb78b4cf8358f204cb1f594cab1e5e29d0c87f7b906a00ee8add623e644b
|
7
|
+
data.tar.gz: 6517e91622407d58bc4f37cb2bf345a6841ba30d260486d85a617bace728c613f30de0a8008e9a3253b9a70138aaa5b7552f67cb665b88804203b9183e672cc7
|
@@ -24,7 +24,7 @@ module Mutant
|
|
24
24
|
ALL_EXPRESSION = Expression::Namespace::Recursive.new(scope_name: nil)
|
25
25
|
EXPRESSION_CANDIDATE = /\A([^ ]+)(?: )?/.freeze
|
26
26
|
EXIT_SUCCESS = 0
|
27
|
-
|
27
|
+
DEFAULT_CLI_OPTIONS = %w[--fail-fast spec].freeze
|
28
28
|
TEST_ID_FORMAT = 'rspec:%<index>d:%<location>s/%<description>s'
|
29
29
|
|
30
30
|
private_constant(*constants(false))
|
@@ -34,7 +34,7 @@ module Mutant
|
|
34
34
|
# @return [undefined]
|
35
35
|
def initialize(*)
|
36
36
|
super
|
37
|
-
@runner = RSpec::Core::Runner.new(RSpec::Core::ConfigurationOptions.new(
|
37
|
+
@runner = RSpec::Core::Runner.new(RSpec::Core::ConfigurationOptions.new(effective_arguments))
|
38
38
|
@rspec_world = RSpec.world
|
39
39
|
end
|
40
40
|
|
@@ -82,6 +82,10 @@ module Mutant
|
|
82
82
|
|
83
83
|
private
|
84
84
|
|
85
|
+
def effective_arguments
|
86
|
+
arguments.empty? ? DEFAULT_CLI_OPTIONS : arguments
|
87
|
+
end
|
88
|
+
|
85
89
|
def reset_examples
|
86
90
|
@rspec_world.filtered_examples.each_value(&:clear)
|
87
91
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mutant-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mutant
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.11.
|
19
|
+
version: 0.11.22
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.11.
|
26
|
+
version: 0.11.22
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|