Permalink
Browse files

Put code where they belong.

  • Loading branch information...
1 parent ba4d3a0 commit f73a605e096822dfdf1aba0e88ed5d8261ff51d5 @BanzaiMan BanzaiMan committed Jan 23, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/rhc/wizard.rb
  2. +0 −1 spec/rhc/wizard_spec.rb
  3. +1 −0 spec/wizard_spec_helper.rb
View
@@ -87,7 +87,7 @@ def password
# cache SSH keys from the REST client
def ssh_keys
- @ssh_keys ||= rest_client.sshkeys rescue []
+ @ssh_keys ||= rest_client.sshkeys
end
# clear SSH key cache
@@ -316,7 +316,6 @@ def expect_raise_from_api(error)
should_write_config
should_create_an_ssh_keypair
should_upload_default_key
- subject.should_receive(:ssh_key_uploaded?).and_return(true)
should_not_find_git
should_check_remote_server
should_find_a_namespace('testnamespace')
@@ -125,6 +125,7 @@ def should_check_remote_server
ssh = Object.new
ssh.should_receive(:close)
Net::SSH.should_receive(:start).once.and_return(ssh)
+ subject.should_receive(:ssh_key_uploaded?).and_return(true)
next_stage.should_not be_nil
last_output do |s|

0 comments on commit f73a605

Please sign in to comment.