Skip to content

Commit

Permalink
add missing test for cli.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Oct 23, 2015
1 parent dc87ba2 commit 6eee514
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/connect/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,14 @@
end
end

context 'rollback subcommand' do
it '--rollback calls SUSE::Connect::Migration.rollback' do
expect_any_instance_of(Client).not_to receive(:register!)
expect(SUSE::Connect::Migration).to receive(:rollback)
cli = subject.new(%w{--rollback})
end
end

describe 'config write' do
it 'writes config if appropriate cli param been passed' do
cli = subject.new(%w{--write-config --status})
Expand Down

0 comments on commit 6eee514

Please sign in to comment.