Skip to content

Commit

Permalink
Merge pull request #38 from voxpupuli/rubo
Browse files Browse the repository at this point in the history
rubocop: safe autocorrection
  • Loading branch information
bastelfreak authored Sep 26, 2023
2 parents 14a1540 + 1804ae6 commit 534fd0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-05-09 08:41:21 UTC using RuboCop version 1.50.2.
# on 2023-09-26 11:32:50 UTC using RuboCop version 1.54.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand All @@ -19,17 +19,12 @@ Lint/DuplicateMethods:
- 'spec/mock_vsphere_helper.rb'

# Offense count: 2
# Configuration parameters: AllowedParentClasses.
Lint/MissingSuper:
Exclude:
- 'lib/beaker/hypervisor/fusion.rb'
- 'lib/beaker/hypervisor/vsphere.rb'

# Offense count: 3
# Configuration parameters: CheckForMethodsWithNoSideEffects.
Lint/Void:
Exclude:
- 'spec/beaker/hypervisor/vsphere_spec.rb'

# Offense count: 4
Naming/AccessorMethodName:
Exclude:
Expand Down Expand Up @@ -122,6 +117,11 @@ RSpec/VerifiedDoubles:
Exclude:
- 'spec/beaker/hypervisor/vsphere_helper_spec.rb'

# Offense count: 3
RSpec/VoidExpect:
Exclude:
- 'spec/beaker/hypervisor/vsphere_spec.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Rake/Desc:
Expand Down
6 changes: 3 additions & 3 deletions spec/beaker/hypervisor/vsphere_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module Beaker

hosts = vsphere.instance_variable_get(:@hosts)
hosts.each do |host|
expect(MockVsphereHelper.find_vm(host.name).powerState) == 'poweredOn'
expect(MockVsphereHelper.find_vm(host.name).powerState)
end
end

Expand Down Expand Up @@ -48,7 +48,7 @@ module Beaker
vsphere.provision

hosts.each do |host|
expect(MockVsphereHelper.find_vm(host.name).powerState) == 'poweredOn'
expect(MockVsphereHelper.find_vm(host.name).powerState)
end
end
end
Expand All @@ -61,7 +61,7 @@ module Beaker

hosts = vsphere.instance_variable_get(:@hosts)
hosts.each do |host|
expect(MockVsphereHelper.find_vm(host.name).powerState) == 'poweredOff'
expect(MockVsphereHelper.find_vm(host.name).powerState)
end
end

Expand Down

0 comments on commit 534fd0c

Please sign in to comment.