Sha256: b5f68229eaa115b912e2a88e3e1232db7a8cf1295623b55a31f7e77eab6fd207
Contents?: true
Size: 622 Bytes
Versions: 9
Compression:
Stored size: 622 Bytes
Contents
require 'spec_helper' describe EyProCli do describe "logout" do context "without a token" do before(:each) { subject.class.core_file = @tempfile } it "handles a missing token" do expect(capture(:stdout) { subject.logout }).to match(/no api token found/i) end end context "with a token" do before(:each) { create_core_credentials } it "removes the token" do expect(capture(:stdout) { subject.logout }).to match(/successfully removed api token/i) expect(read_yaml(@tempfile)).not_to have_key("https://api.engineyard.com/") end end end end
Version data entries
9 entries across 9 versions & 1 rubygems