cucumber-formatters 0.0.2 → 0.0.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: ccda781c9ad69ad83b2fbfb715ec6a94eda24c48
4
- data.tar.gz: 57bb066b286748eebcd3e655c59ca15b5842392d
3
+ metadata.gz: d4c3a36577237cc0915fb9d38028bf7f2e230b8c
4
+ data.tar.gz: c8ab885482a088e5f5ba5cc7499c206a33d57f54
5
5
  SHA512:
6
- metadata.gz: b3a81391e13cbef1bcfa1da698a76dc052ad16bb4ff19a8bc0dab6f3f392fee444a502af2563f1335445e01f81f201ca7ec2d4ad10b1921083c60a2642df3ea0
7
- data.tar.gz: d1db8e3d1c6d776823ee2e186948624db82d423f01f38c794409771eb2edccb69e4db9dfb5f2607b5462a95edbaa4bd0028df7716558e9e4b5dc45cbd8d092e6
6
+ metadata.gz: 6ca6254156b24c79947261d57c6e197fada61237035445498bd93236e3518af7f1a57bebb86fca3d12c3c48a6a616f261d41820a9469ef33c4abada5d23e9ede
7
+ data.tar.gz: 08c7c848245ee922fa0465340563e6bec8eb50c22575bfe81bcb8469e4487354e8ba634225da3c7edee487f2b6043f7cadd491f885e7e4331426030c9b7a7957
@@ -33,7 +33,7 @@ module Cucumber
33
33
  print_summary(features)
34
34
  end
35
35
 
36
- def before_feature(feature)
36
+ def before_feature(_feature)
37
37
  @background_failure = false
38
38
  end
39
39
 
@@ -41,23 +41,23 @@ module Cucumber
41
41
  @feature = "#{keyword}: #{name}"
42
42
  end
43
43
 
44
- def before_background(background)
44
+ def before_background(_background)
45
45
  @in_background = true
46
46
  end
47
47
 
48
- def after_background(background)
48
+ def after_background(_background)
49
49
  @in_background = false
50
50
  end
51
51
 
52
- def background_name(keyword, name, file_colon_line, source_indent)
52
+ def background_name(keyword, name, *_args)
53
53
  @background = " #{keyword}: #{name}"
54
54
  end
55
55
 
56
- def scenario_name(keyword, name, file_colon_line, source_indent)
56
+ def scenario_name(keyword, name, *_args)
57
57
  @scenario = " #{keyword}: #{name}"
58
58
  end
59
59
 
60
- def step_name(keyword, step_match, status, source_indent, background, file_colon_line)
60
+ def step_name(keyword, step_match, *_args)
61
61
  @step = " #{keyword}#{step_match.format_args}"
62
62
  end
63
63
 
@@ -72,17 +72,16 @@ module Cucumber
72
72
  end
73
73
 
74
74
  def after_table_row(table_row)
75
- if table_row.exception
76
- @step = " Row: #{table_row.name}"
77
- exception(table_row.exception, table_row.status, 6)
78
- end
75
+ return unless table_row.exception
76
+ @step = " Row: #{table_row.name}"
77
+ exception(table_row.exception, table_row.status, 6)
79
78
  end
80
79
 
81
80
  private
82
81
 
83
82
  def print_scenario_summary
84
83
  @io.puts @feature unless @feature.nil?
85
- @io.puts (@scenario ? @scenario : @background)
84
+ @io.puts @scenario ? @scenario : @background
86
85
  @io.puts @step unless @step.nil?
87
86
  @io.puts @table_row unless @table_row.nil?
88
87
 
@@ -4,4 +4,4 @@ describe Cucumber::Formatter::Failures do
4
4
  it 'is a class' do
5
5
  Cucumber::Formatter::Failures.is_a? Class
6
6
  end
7
- end
7
+ end
@@ -4,4 +4,4 @@ require 'coveralls'
4
4
  Coveralls.wear!
5
5
  CodeClimate::TestReporter.start
6
6
 
7
- require 'cucumber-formatters'
7
+ require 'cucumber-formatters'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-formatters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Slaughter