spinach_file_reporter 0.0.1.2 → 0.0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5a2b9eeda4d5e704a15e561ad5e3eab24267f41
4
- data.tar.gz: e565958d0d727e9c3c56c70f3454db3a327bed6f
3
+ metadata.gz: 33b55c0a2e74e0c3626367b9e10ae04a0402122d
4
+ data.tar.gz: 0911c41f15e4fbe050d5ddef239e187867a088a2
5
5
  SHA512:
6
- metadata.gz: 1a6343a232fcff9a9a60b96be5e074c4aedd529095ac71654cfd488a3875dda2e57a78390634d61159e1482f6f5d66044612b8612b99d64b0b700ff99ad50ef8
7
- data.tar.gz: d4570df2355d40857ab2b82232c28f30a0204091c4aea51847feb54bb169c8d02150576b577d72149bd816d666f1d27b3147b45696e313550bdffbcacf68b3fe
6
+ metadata.gz: 057a62fedbb7849f15d32f5dc1901e8a68c7b2d47f3ad38f6b5919d1aa98168d81f3febe8ac909901fbc8dd5c74ce7fa6bb5066b34c9ed9f5ed25ef11e115da3
7
+ data.tar.gz: f619c00026949ef5e32f3cfafcbd97eae7aaf4f25973b70b9a6bcb9085676298c3a1e175049554f09ee7cc1899e9ac465a3f0c708cbe89d562d90a501fcbf4fd
@@ -26,7 +26,7 @@ module Spinach
26
26
  file.puts @file_errors.uniq.join(' ')
27
27
  file.close
28
28
  else
29
- File.delete("tmp/spinach.txt") if File.file?("tmp/spinach.txt")
29
+ File.delete("tmp/spinach_spinach.txt") if File.file?("tmp/spinach_spinach.txt")
30
30
  end
31
31
  super(success)
32
32
  end
@@ -89,8 +89,7 @@ module Spinach
89
89
  def on_failed_step(step, failure, step_location, step_definitions = nil)
90
90
  output_step('✘', step, :red, step_location)
91
91
  self.scenario_error = [current_feature, current_scenario, step, failure]
92
- feature = step_location[0].split( '/' ).last.split('.').first
93
- @file_errors.push( "features/#{feature}.feature") if step_location
92
+ @file_errors.push "#{current_feature.filename}:#{current_scenario.line}"
94
93
  failed_steps << scenario_error
95
94
  end
96
95
 
@@ -104,8 +103,8 @@ module Spinach
104
103
  #
105
104
  def on_error_step(step, failure, step_location, step_definitions = nil)
106
105
  output_step('!', step, :red, step_location)
107
- feature = step_location[0].split( '/' ).last.split('.').first
108
106
  self.scenario_error = [current_feature, current_scenario, step, failure]
107
+ @file_errors.push "#{current_feature.filename}:#{current_scenario.line}"
109
108
  error_steps << scenario_error
110
109
  end
111
110
 
Binary file
@@ -3,7 +3,7 @@ require "spinach_file_reporter/gem_description"
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'spinach_file_reporter'
6
- s.version = '0.0.1.2'
6
+ s.version = '0.0.1.3'
7
7
  s.date = '2015-07-24'
8
8
  s.summary = 'Reporter for spinach with file output'
9
9
  s.description = Spinach::FileReporter::Reporter::GemDescription.to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spinach_file_reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.2
4
+ version: 0.0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - JuanMa Jurado
@@ -38,6 +38,7 @@ files:
38
38
  - lib/spinach_file_reporter/gem_description.rb
39
39
  - lib/spinach_file_reporter/spinach_file_reporter.rb
40
40
  - spinach_file_reporter-0.0.1.1.gem
41
+ - spinach_file_reporter-0.0.1.2.gem
41
42
  - spinach_file_reporter.gemspec
42
43
  homepage: https://github.com/jmjurado23/spinach_file_reporter
43
44
  licenses: