Skip to content

Commit

Permalink
Fix inst_scc test
Browse files Browse the repository at this point in the history
Using :: operator
  • Loading branch information
dgdavid committed Feb 21, 2020
1 parent 6743d7a commit ed22631
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/registration/clients/inst_scc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ def get_available_addons
# cache the available addons
return :cancel if init_registration == :cancel

if !Registration::SwMgmt.find_base_product
if !::Registration::SwMgmt.find_base_product
Registration::Helpers.report_no_base_product
return :cancel
end

addons_loaded = Registration::ConnectHelpers.catch_registration_errors do
addons_loaded = ::Registration::ConnectHelpers.catch_registration_errors do
registration_ui.get_available_addons
end

Expand Down
2 changes: 1 addition & 1 deletion test/inst_scc_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
before do
expect(Registration::Registration).to receive(:is_registered?).at_least(:once)
.and_return(true)
expect(Registration::SwMgmt).to receive(:find_base_product).at_least(:once)
expect(::Registration::SwMgmt).to receive(:find_base_product).at_least(:once)
.and_return("name" => "SLES")
end

Expand Down

0 comments on commit ed22631

Please sign in to comment.