Sha256: fe2ac61321dbc2e452a67a99bc4d014926c03eff2ad331e86fc6d78cfb01e99d
Contents?: true
Size: 635 Bytes
Versions: 10
Compression:
Stored size: 635 Bytes
Contents
require 'spec_helper' describe "ey logout" do given "integration" context "logged in" do before { login_scenario 'empty' } it "logs you out" do ey %w[logout] expect(@out).to include("API token removed: #{ENV['EYRC']}") expect(@out).to include("Run any other command to login again.") end end context "not logged in" do it "doesn't prompt for login before logging out" do ey %w[logout] expect(@out).not_to include("API token removed:") expect(@out).to include("Already logged out.") expect(@out).to include("Run any other command to login again.") end end end
Version data entries
10 entries across 10 versions & 2 rubygems