Sha256: e8b035e4e82f66542c99b5bd3eb4e040f5be8eb3644de7fa7dbe569915be0e38
Contents?: true
Size: 854 Bytes
Versions: 7
Compression:
Stored size: 854 Bytes
Contents
require 'spec_helper' describe "ey whoami" do context "logged in" do given "integration" before(:all) do api_scenario "empty" end it "outputs the currently logged in user" do ey %w[whoami] @out.should include("User Name (test@test.test)") end end context "not logged in" do given "integration without an eyrc file" before(:each) do api_scenario "empty" end it "prompts for authentication before outputting the logged in user" do ey(%w[whoami], :hide_err => true) do |input| input.puts("test@test.test") input.puts("test") end @out.should include("We need to fetch your API token; please log in.") @out.should include("Email:") @out.should include("Password:") @out.should include("User Name (test@test.test)") end end end
Version data entries
7 entries across 7 versions & 1 rubygems