Skip to content

Commit

Permalink
Fix Rubocop violations in the legacy API adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Dana Scheider committed Jul 11, 2017
1 parent f574ba1 commit 5da5091
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
# Offense count: 8
Lint/AmbiguousOperator:
Exclude:
- 'lib/cucumber/formatter/legacy_api/adapter.rb'
- 'lib/cucumber/formatter/legacy_api/ast.rb'
- 'lib/cucumber/multiline_argument/data_table.rb'
- 'lib/cucumber/running_test_case.rb'
Expand Down
4 changes: 2 additions & 2 deletions lib/cucumber/formatter/legacy_api/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def background(node, *)
end

def puts(messages)
@delayed_messages.push *messages
@delayed_messages.push(*messages)
end

def embed(src, mime_type, label)
Expand All @@ -313,7 +313,7 @@ def after
private :before_hook_results

def any_test_steps_failed?
@test_step_results.any? &:failed?
@test_step_results.any?(&:failed?)
end

def switch_step_container(source = current_test_step_source)
Expand Down

0 comments on commit 5da5091

Please sign in to comment.