mutant-rspec 0.10.24 → 0.10.29

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: 55b0e6fe40cbe0bfc2a9c687f4d2ee750edf226bfb9078a1ba77dae644081008
4
- data.tar.gz: 2839e022868b2820226806727c8411e7da8702821149091b1f15d8fed4489df1
3
+ metadata.gz: e2320e64942e658571a469925ad7930176ad169631a0771f7c3e5a2c6a497d8f
4
+ data.tar.gz: 5f194156b2a124c676d8f0e3464b0970546232e6048c0a5e97b57928433c9b21
5
5
  SHA512:
6
- metadata.gz: 4b33f4e1ab1eea886a28a700741bdf4e2cb68343f63cb71536840daffe3ded4c88209dbcce2233135028c5073111c26be9bcb1ade938ec1cadb425fdfe00801c
7
- data.tar.gz: e16a528e3eab7e5922814a919e5742276bd758c497a16326403e8caa5d948e5a6d1e2a8126b95fe3c67759878344db2ee73c49172e712263e69fce6dab194dcc
6
+ metadata.gz: f5ad0167a9cd9e42d689c017a4e0bb40a35fa35b019ae2201df53e977bb3cbc576b9a34bd966dcc0fcc09c909ed225720a02b11b66dc38eeb78f6b4bbfa82df4
7
+ data.tar.gz: f144fae145eafe500ed24c8bb3eacf2c9f2cc2abdfda0f9ae73dc00ea8e10cce186777e667e1187fcbde9b1cc3ac3172f52a35f32a7db21bc07f3ff40702fcc8
@@ -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
- CLI_OPTIONS = IceNine.deep_freeze(%w[spec --fail-fast])
27
+ CLI_OPTIONS = %w[spec --fail-fast].freeze
28
28
  TEST_ID_FORMAT = 'rspec:%<index>d:%<location>s/%<description>s'
29
29
 
30
30
  private_constant(*constants(false))
@@ -34,8 +34,8 @@ module Mutant
34
34
  # @return [undefined]
35
35
  def initialize(*)
36
36
  super
37
- @runner = RSpec::Core::Runner.new(RSpec::Core::ConfigurationOptions.new(CLI_OPTIONS))
38
- @world = RSpec.world
37
+ @runner = RSpec::Core::Runner.new(RSpec::Core::ConfigurationOptions.new(CLI_OPTIONS))
38
+ @rspec_world = RSpec.world
39
39
  end
40
40
 
41
41
  # Setup rspec integration
@@ -56,7 +56,7 @@ module Mutant
56
56
  examples = tests.map(&all_tests_index)
57
57
  filter_examples(&examples.public_method(:include?))
58
58
  start = timer.now
59
- passed = @runner.run_specs(@world.ordered_example_groups).equal?(EXIT_SUCCESS)
59
+ passed = @runner.run_specs(@rspec_world.ordered_example_groups).equal?(EXIT_SUCCESS)
60
60
  Result::Test.new(
61
61
  passed: passed,
62
62
  runtime: timer.now - start
@@ -114,13 +114,13 @@ module Mutant
114
114
  end
115
115
 
116
116
  def all_examples
117
- @world.example_groups.flat_map(&:descendants).flat_map(&:examples).select do |example|
117
+ @rspec_world.example_groups.flat_map(&:descendants).flat_map(&:examples).select do |example|
118
118
  example.metadata.fetch(:mutant, true)
119
119
  end
120
120
  end
121
121
 
122
122
  def filter_examples(&predicate)
123
- @world.filtered_examples.each_value do |examples|
123
+ @rspec_world.filtered_examples.each_value do |examples|
124
124
  examples.keep_if(&predicate)
125
125
  end
126
126
  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.10.24
4
+ version: 0.10.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-01 00:00:00.000000000 Z
11
+ date: 2021-03-08 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.10.24
19
+ version: 0.10.29
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.24
26
+ version: 0.10.29
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-core
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.2.3
76
+ rubygems_version: 3.1.4
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Rspec integration for mutant