Skip to content

Commit

Permalink
Fixes #35185 - Stub provider check in BmcTest
Browse files Browse the repository at this point in the history
Rubyipmi checks if ipmitool is installed, but never actually uses it.
Stubbing the presence check makes testing easier for developers.
  • Loading branch information
ekohl authored and ehelms committed Jul 8, 2022
1 parent 6983107 commit 28b0212
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/bmc/bmc_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

class BmcTest < Test::Unit::TestCase
def setup
Rubyipmi.stubs(:is_provider_installed?).with('ipmitool').returns(true)
@args = { :username => "user", :password => "pass", :bmc_provider => "ipmitool", :host => "host" }
@bmc = Proxy::BMC::IPMI.new(@args)
end
Expand Down

0 comments on commit 28b0212

Please sign in to comment.