Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ggiamarchi committed Sep 19, 2014
1 parent 8e7096e commit 4abd626
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
nova.stub(:import_keypair) { 'my-keypair-imported' }
SSHKey.stub(:generate) { ssh_key }
File.should_receive(:write).with('/data/dir/my-keypair-imported', 'private key')
File.should_receive(:chmod).with(0600, '/data/dir/my-keypair-imported')
@action.generate_keypair(env).should eq('my-keypair-imported')
end
end
Expand Down

0 comments on commit 4abd626

Please sign in to comment.