Sha256: 4f9c27ea074392fa9481a24076e8f2342e8278e1109777fb5e7e62a8ed1c2549
Contents?: true
Size: 469 Bytes
Versions: 7
Compression:
Stored size: 469 Bytes
Contents
require "highline" module PasswordPromptHelpers # This password matches the testing users available on dev machines def default_test_password "N:B3e%7Cmh" end # Intercepts HighLine prompting for a password and returns the testing default # or a specific value. Otherwise this blocks the specs. # def mock_password_entry(password = default_test_password) HighLine.any_instance.should_receive(:ask).at_least(:once).and_return(password) end end
Version data entries
7 entries across 7 versions & 1 rubygems