Skip to content

Commit

Permalink
return :abort when zypp init fails, fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Apr 18, 2014
1 parent b9a9b76 commit 903e153
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clients/scc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def main
CommandLine.Run(cmdline_description)
else
Wizard.CreateDialog
return false unless ::Registration::SwMgmt.init
return :abort unless ::Registration::SwMgmt.init

begin
return WFM.call("inst_scc")
Expand Down
2 changes: 1 addition & 1 deletion test/scc_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
expect(Yast::Wizard).to receive(:CreateDialog)
expect(Yast::Wizard).to receive(:CloseDialog)

expect(Registration::SwMgmt).to receive(:init)
expect(Registration::SwMgmt).to receive(:init).and_return(true)
end

context "the system is already registered" do
Expand Down

0 comments on commit 903e153

Please sign in to comment.