mutant-rspec 0.10.25 → 0.10.26

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: 1e0b48e28fcebba591a9bbdb97028e8b4a929ac51f4a595cf51f0cb3ba7cce6c
4
- data.tar.gz: 2738cbe2053e257c6afacdc15126ef07c3739f6a6edf88c67891ead3e11ee060
3
+ metadata.gz: 52a64af7c0200dc0f62174cfef029009e4099589d62fcb19ae9a9be2b4884950
4
+ data.tar.gz: 87c194512689a9d0ef973eeda5eaccad6b02ab3f2069ec5307dd7b10a18e2e9c
5
5
  SHA512:
6
- metadata.gz: 154fb4fe2f1e49e4cb956a320a5187312fe5108db942082fd32cd3a3f0b0c1bd27c21702f0b6b9f63d19a33f8e62e77d22c9eb0042a385d6ab2b0508e0ad69c4
7
- data.tar.gz: f9dc3b77abdc529a4fd44c2455eca18e6d5884049fdb305b61023446df61d0019240818a3fcc00a6991f1efd4dcf566b8c14002c0b765f88e992bb4f3885ac10
6
+ metadata.gz: eb3f6933e707db86d050d642c704c89114c97f31dad596901cdb542727874829b9f6433a41a9bfd79128b59b0f1d249e9ee99f9b12c6b90627bdcc47f0757ebb
7
+ data.tar.gz: fc1d6d4361eb0893c17d9fd0816ce2144235e7d7cdda9744c33121c9d4620a55a077a3601d02d4b65557d4b88c3d64bda99c51bfc39457fa254b5a2d441cb419
@@ -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.25
4
+ version: 0.10.26
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-03 00:00:00.000000000 Z
11
+ date: 2021-01-16 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.25
19
+ version: 0.10.26
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.25
26
+ version: 0.10.26
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-core
29
29
  requirement: !ruby/object:Gem::Requirement