Sha256: 7d28a9c92e1360903d78a878d03c468bffc5fd1cad839f1f5135796ee77fb6b6
Contents?: true
Size: 563 Bytes
Versions: 5
Compression:
Stored size: 563 Bytes
Contents
require 'spec_helper' describe EyProCli do describe "logout" do context "with a token" do before(:each) do subject.class.core_file = @tempfile allow(subject).to receive(:ask) { FFaker::Internet.email } expect(capture(:stdout) { subject.login }).to match(/writing token/i) end 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ey-pro-cli-0.0.8 | spec/logout_spec.rb |
ey-pro-cli-0.0.7 | spec/logout_spec.rb |
ey-pro-cli-0.0.6 | spec/logout_spec.rb |
ey-pro-cli-0.0.5 | spec/logout_spec.rb |
ey-pro-cli-0.0.4 | spec/logout_spec.rb |