mutant-rspec 0.10.16 → 0.10.21
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 +4 -6
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c28f14dfb63b0ccc1c29806744e6d381022633cea012daa8483b1fa8d9f2bfe9
|
4
|
+
data.tar.gz: 96f75fefbc269a63e5e6002d3070ae3f297997ec6ac85555bb263e2025a381a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e253cbd04c341afdb0e2088b70a02bd944cc4bea97b83deee25cddf8fa999692ef05ca524b39433c4fa88b02fa94f14d82956f83f5e55094d0304621a6d193a1
|
7
|
+
data.tar.gz: 4343b9f7f48e746aee973bd7855d354d31aaa4fe160aa58fc9709e8be9a03af10f8e7d9a6bfa4c12a0d07f15e118c790d3cbe8ca230c4a1b9ac8ff56b52eb7d6
|
@@ -23,7 +23,6 @@ module Mutant
|
|
23
23
|
|
24
24
|
ALL_EXPRESSION = Expression::Namespace::Recursive.new(scope_name: nil)
|
25
25
|
EXPRESSION_CANDIDATE = /\A([^ ]+)(?: )?/.freeze
|
26
|
-
LOCATION_DELIMITER = ':'
|
27
26
|
EXIT_SUCCESS = 0
|
28
27
|
CLI_OPTIONS = IceNine.deep_freeze(%w[spec --fail-fast])
|
29
28
|
TEST_ID_FORMAT = 'rspec:%<index>d:%<location>s/%<description>s'
|
@@ -54,14 +53,13 @@ module Mutant
|
|
54
53
|
#
|
55
54
|
# @return [Result::Test]
|
56
55
|
def call(tests)
|
57
|
-
examples = tests.map(&all_tests_index
|
58
|
-
filter_examples(&examples.
|
56
|
+
examples = tests.map(&all_tests_index)
|
57
|
+
filter_examples(&examples.public_method(:include?))
|
59
58
|
start = timer.now
|
60
59
|
passed = @runner.run_specs(@world.ordered_example_groups).equal?(EXIT_SUCCESS)
|
61
60
|
Result::Test.new(
|
62
61
|
passed: passed,
|
63
|
-
runtime: timer.now - start
|
64
|
-
tests: tests
|
62
|
+
runtime: timer.now - start
|
65
63
|
)
|
66
64
|
end
|
67
65
|
|
@@ -112,7 +110,7 @@ module Mutant
|
|
112
110
|
end
|
113
111
|
|
114
112
|
def parse_expression(input, &default)
|
115
|
-
expression_parser.
|
113
|
+
expression_parser.call(input).from_right(&default)
|
116
114
|
end
|
117
115
|
|
118
116
|
def all_examples
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mutant-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mutant
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.10.
|
19
|
+
version: 0.10.21
|
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.10.
|
26
|
+
version: 0.10.21
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|