spec/shelly/cli/main_spec.rb in shelly-0.0.41.pre vs spec/shelly/cli/main_spec.rb in shelly-0.0.41

- old
+ new

@@ -225,17 +225,9 @@ fake_stdin(["megan@example.com", "secret"]) do invoke(@main, :login) end end - it "should upload user's public SSH key and raise HTTP status 409 Conflict when SSH key exists in database" do - @user.should_receive(:upload_ssh_key).and_raise(RestClient::Conflict) - $stdout.should_receive(:puts).with("\e[32mYou have following clouds available:\e[0m") - fake_stdin(["megan@example.com", "secret"]) do - invoke(@main, :login) - end - end - it "should display list of applications to which user has access" do $stdout.should_receive(:puts).with("\e[32mYou have following clouds available:\e[0m") $stdout.should_receive(:puts).with(/ abc\s+\| running/) $stdout.should_receive(:puts).with(/ fooo\s+\| no code/) fake_stdin(["megan@example.com", "secret"]) do