parallelized_specs 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ begin
12
12
  gem.email = "jake@instructure.com"
13
13
  gem.homepage = "http://github.com/jakesorce/#{gem.name}"
14
14
  gem.authors = "Jake Sorce, Bryan Madsen, Shawn Meredith"
15
- gem.version = "0.2.8"
15
+ gem.version = "0.2.9"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
@@ -7,7 +7,7 @@ class ParallelizedSpecs::ExampleRerunFailuresLogger < ParallelizedSpecs::SpecLog
7
7
  if example.location != nil
8
8
  unless !!self.example_group.nested_descriptions.to_s.match(/shared/) || !!self.instance_variable_get(:@example_group).examples.last.location.match(/helper/)
9
9
  @failed_examples ||= []
10
- @failed_examples << "#{example.location.match(/spec.*\d/).to_s.gsub(/\r/,"")} "
10
+ @failed_examples << "#{example.location.match(/spec.*\d/).to_s.chomp)}"
11
11
  end
12
12
  end
13
13
  else
@@ -26,7 +26,7 @@ class ParallelizedSpecs::ExampleRerunFailuresLogger < ParallelizedSpecs::SpecLog
26
26
  def dump_summary(*args)
27
27
  lock_output do
28
28
  if RSPEC_1
29
- @output.puts "#{@failed_examples.to_s.gsub(/\n/,"")}"
29
+ @output.puts "#{@failed_examples.to_s.chomp)}"
30
30
  end
31
31
  end
32
32
  @output.flush
@@ -5,12 +5,13 @@ class ParallelizedSpecs::SharedExampleRerunFailuresLogger < ParallelizedSpecs::S
5
5
  def example_failed(example, *args)
6
6
  if RSPEC_1
7
7
 
8
- if example.location != nil && example.location.match(/spec.*\d/).to_s != nil
8
+ if example.location.match(/spec.*\d/).to_s != nil
9
9
  @failed_shared_examples ||= {}
10
+ spec_caller = self.example_group.backtrace.match(/spec.*\d/).to_s
10
11
  failed_shared_spec = example.location.match(/spec.*\d/).to_s
11
12
 
12
13
  if !!self.example_group.nested_descriptions.to_s.match(/shared/) || !!self.instance_variable_get(:@example_group).examples.last.location.match(/helper/)
13
- if spec_caller == @failed_shared_examples.keys.last || spec_caller == @failed_shared_examples.keys.first || !!spec_caller.match(/helper/) && @failed_shared_examples.keys.first != nil
14
+ if spec_caller == @failed_shared_examples.keys.last || spec_caller == @failed_shared_examples.keys.first || !!spec_caller.match(/helper/) || @failed_shared_examples.keys.first != nil
14
15
  key = @failed_shared_examples.keys.first
15
16
  @failed_shared_examples[key] << "#{failed_shared_spec} "
16
17
  else
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.2.8"
8
+ s.version = "0.2.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jake Sorce, Bryan Madsen, Shawn Meredith"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallelized_specs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 8
10
- version: 0.2.8
9
+ - 9
10
+ version: 0.2.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jake Sorce, Bryan Madsen, Shawn Meredith