mutant-rspec 0.5.16 → 0.5.17

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
  SHA1:
3
- metadata.gz: ee915ddcafc038b972982730f557b7052f26593a
4
- data.tar.gz: 17a69c6678b4ec11cf00d7ec86235d1dc3c3d800
3
+ metadata.gz: 133b50e618ba757663edc0543e1d1c2615e80681
4
+ data.tar.gz: c0e91e6464ba4983d1891eccfcccfc401c4a86d0
5
5
  SHA512:
6
- metadata.gz: cc39c8d11a5f9189224ff902051e50f2fd0ec1b8a1bc8284d251cdd7f6ef6474e93171538e35888de6a567f4e86373e7f7449b6303d39fce525b7a85866a44c6
7
- data.tar.gz: 6762ce0802df6fdf215697a7754e53b916999fc220bdce988739c94be5d0781e9d94a0c365750afd2002430603a6b8158e9ec1369574ee798e4cbf935eab6f83
6
+ metadata.gz: 1d26547897a43dc5c0aa88d65b0046eb581655c3238db614d7ed17457ff1fe2a5a2831777523b4d2e9630427fe89a7faaad850711f5ec955aae41acf02552295
7
+ data.tar.gz: 21489889769ef65d03a0c91903902f6be1efb7578cc409b53ec5833f290c1e63bc443178726e17f98a93150525152efb2b8d5488c7ec6043e8b3b9dc2df6fb23
data/lib/mutant/rspec.rb CHANGED
@@ -1,7 +1,12 @@
1
1
  # encoding: UTF-8
2
+ require 'rspec'
2
3
 
3
4
  module Mutant
4
5
  # Rspec integration namespace
5
6
  module Rspec
6
7
  end # Rspec
7
8
  end # Mutant
9
+
10
+ require 'mutant/rspec'
11
+ require 'mutant/rspec/strategy'
12
+ require 'mutant/rspec/test'
@@ -63,9 +63,10 @@ module Mutant
63
63
  def all_tests
64
64
  example_groups
65
65
  .flat_map(&:descendants)
66
- .select { |example_group| example_group.descendants.one? }
67
66
  .map do |example_group|
68
67
  Test.new(self, example_group)
68
+ end.select do |test|
69
+ test.identification.split(' ', 2).first.eql?(test.identification)
69
70
  end
70
71
  end
71
72
  memoize :all_tests
@@ -125,7 +126,7 @@ module Mutant
125
126
  # @api private
126
127
  #
127
128
  def options
128
- options = RSpec::Core::ConfigurationOptions.new(%w(--fail-fast spec))
129
+ options = RSpec::Core::ConfigurationOptions.new(%w[--fail-fast spec])
129
130
  options.parse_options if rspec2?
130
131
  options
131
132
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutant-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.16
4
+ version: 0.5.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 0.5.16
19
+ version: 0.5.17
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.5.16
26
+ version: 0.5.17
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-core
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -73,7 +73,6 @@ extra_rdoc_files:
73
73
  - TODO
74
74
  - LICENSE
75
75
  files:
76
- - lib/mutant-rspec.rb
77
76
  - lib/mutant/rspec.rb
78
77
  - lib/mutant/rspec/strategy.rb
79
78
  - lib/mutant/rspec/test.rb
data/lib/mutant-rspec.rb DELETED
@@ -1,7 +0,0 @@
1
- # encoding: UTF-8
2
-
3
- require 'rspec'
4
-
5
- require 'mutant/rspec'
6
- require 'mutant/rspec/strategy'
7
- require 'mutant/rspec/test'