Sha256: 7779f03ef74ea388e343d5c894dd3334dfccdff51444ecdad7eb0604fc453a26
Contents?: true
Size: 800 Bytes
Versions: 10
Compression:
Stored size: 800 Bytes
Contents
require 'spec_helper' describe "ey login" do given "integration" context "logged in" do before do login_scenario 'empty' end it "returns the logged in user name" do ey %w[login] 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[login], :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