Skip to content

Commit

Permalink
Address rubocop offences
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki24 committed Oct 12, 2024
1 parent 4ba7b77 commit f0bc861
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions features/step_definitions/flatware_steps.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

require 'benchmark'
require 'etc'

# helper methods available in all steps
Expand Down Expand Up @@ -27,11 +28,8 @@ def flatware_process
all_commands.find { |command| command.commandline.include? 'flatware' }
end

def duration(&_block)
started_at = Time.now
yield
ensure
Time.now - started_at
def duration(&block)
Benchmark.realtime(&block)
end
end
World(Support)
Expand Down

0 comments on commit f0bc861

Please sign in to comment.