Sha256: 35ef1a380a1cc1b38b523fbbde8b9e1722c9dd55d992a6c0bd61efecd1174e3c
Contents?: true
Size: 648 Bytes
Versions: 5
Compression:
Stored size: 648 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe TTY::Shell::Question, '#initialize' do let(:input) { StringIO.new } let(:output) { StringIO.new } let(:shell) { TTY::Shell.new(input, output) } let(:message) { 'Do you like me?' } subject { described_class.new shell } its(:shell) { should == shell } its(:required) { should be_false } its(:echo) { should be_true } its(:mask) { should be_false } its(:character) { should be_false } its(:modifier) { should be_kind_of TTY::Shell::Question::Modifier } its(:validation) { should be_kind_of TTY::Shell::Question::Validation } end # initialize
Version data entries
5 entries across 5 versions & 1 rubygems