Sha256: c1e7ff5c6b0f155b6aab740f9c57d93f47dd0458b0f5c7e5545fc204b0b7bf66
Contents?: true
Size: 649 Bytes
Versions: 4
Compression:
Stored size: 649 Bytes
Contents
# coding: utf-8 require_relative 'acceptance_test' HighLine::AcceptanceTest.check do |t| t.desc = "This step checks if the 'echo = false' " \ "setting is effective in hiding the user " \ "typed characters.\n" \ "This functionality is useful when asking " \ "for passwords.\n" \ "When typing the characters you should not " \ "see any of them on the screen." t.action = Proc.new do answer = ask "Enter some characters and press <enter>: " do |q| q.echo = false end puts "You've entered -> #{answer} <-" end t.question = "Were the characters adequately hidden when you typed them (y/n)? " end
Version data entries
4 entries across 4 versions & 1 rubygems