Skip to content

Instantly share code, notes, and snippets.

@elight
Created December 19, 2013 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elight/8046002 to your computer and use it in GitHub Desktop.
Save elight/8046002 to your computer and use it in GitHub Desktop.
context "when I create a server" do
Given { pending "we're having a timeout issue here'" }
Given(:private_key) { home.join '.ssh/id_rsa' }
Given do
FileUtils.mkdir_p private_key.dirname, mode: 0700
`echo -e "y\n" | ssh-keygen -t rsa -C "test@example.com" -N "testing" -f "#{private_key}"`
end
When {VCR.use_cassette('servers/create') {run "rumm create server --name silly-saffron"}}
Then {all_stdout =~ /created server/}
And {last_exit_status.should eql 0}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment