Skip to content

Commit

Permalink
Add new spec
Browse files Browse the repository at this point in the history
  • Loading branch information
gionaufal committed Aug 7, 2019
1 parent ec1223a commit 78d1822
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/connect/cli_spec.rb
Expand Up @@ -138,6 +138,12 @@
expect_any_instance_of(SUSE::Connect::Config).to receive(:write!)
cli.execute!
end

it 'registers the system if using a configured proxy' do
allow_any_instance_of(SUSE::Connect::Config).to receive(:url_default?).and_return(false)
expect_any_instance_of(Client).to receive(:register!)
cli.execute!
end
end

it 'requires either --regcode or --url (regcode-less SMT registration) but respects config attributes' do
Expand Down

0 comments on commit 78d1822

Please sign in to comment.