Sha256: df0a24eebb1064d38b6a5603f0f1f35be6bd7acd2ac77ef02aa59c3c84206ef3
Contents?: true
Size: 794 Bytes
Versions: 10
Compression:
Stored size: 794 Bytes
Contents
require 'spec_helper' describe "ey whoami" do given "integration" context "logged in" do before { login_scenario 'empty' } it "outputs the currently logged in user" do ey %w[whoami] expect(@out).to include("User Name (#{scenario_email})") end end context "not logged in" do it "prompts for authentication before outputting the logged in user" do api_scenario 'empty' ey(%w[whoami], :hide_err => true) do |input| input.puts(scenario_email) input.puts(scenario_password) end expect(@out).to include("We need to fetch your API token; please log in.") expect(@out).to include("Email:") expect(@out).to include("Password:") expect(@out).to include("User Name (#{scenario_email})") end end end
Version data entries
10 entries across 10 versions & 2 rubygems