Skip to content

Commit

Permalink
Mock cleanup call to avoid missing zypper error
Browse files Browse the repository at this point in the history
  • Loading branch information
fschueller committed Apr 5, 2017
1 parent bf15ce3 commit 3c807cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/connect/client_spec.rb
Expand Up @@ -419,6 +419,7 @@

it 'prints confirmation message on successful deregistration' do
allow(subject.api).to receive(:deregister).with('Basic: encodedstring').and_return stubbed_response
allow(System).to receive(:cleanup!).and_return(true)
SUSE::Connect::GlobalLogger.instance.log = string_logger
expect(string_logger).to receive(:info).with('Successfully deregistered system.')

Expand Down

0 comments on commit 3c807cc

Please sign in to comment.