Sha256: 913deea7f735f506b93e3999999ad29b42b9bd00f7602cc9f8f70d7ed63fc751

Contents?: true

Size: 319 Bytes

Versions: 15

Compression:

Stored size: 319 Bytes

Contents

# encoding: utf-8

RSpec.describe TTY::Prompt::Question, '#initialize' do

  subject(:question) { described_class.new(TTY::TestPrompt.new)}

  it { expect(question.echo).to eq(true) }

  it { expect(question.modifier).to eq([]) }

  it { expect(question.validation).to eq(TTY::Prompt::Question::UndefinedSetting) }
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tty-prompt-0.17.2 spec/unit/question/initialize_spec.rb
tty-prompt-0.17.1 spec/unit/question/initialize_spec.rb
tty-prompt-0.17.0 spec/unit/question/initialize_spec.rb
tty-prompt-0.12.0 spec/unit/question/initialize_spec.rb
tty-prompt-0.11.0 spec/unit/question/initialize_spec.rb
tty-prompt-0.10.1 spec/unit/question/initialize_spec.rb
tty-prompt-0.10.0 spec/unit/question/initialize_spec.rb
tty-prompt-0.9.0 spec/unit/question/initialize_spec.rb
tty-prompt-0.8.0 spec/unit/question/initialize_spec.rb
tty-prompt-0.7.1 spec/unit/question/initialize_spec.rb
tty-prompt-0.7.0 spec/unit/question/initialize_spec.rb
tty-prompt-0.6.0 spec/unit/question/initialize_spec.rb
tty-prompt-0.5.0 spec/unit/question/initialize_spec.rb
tty-prompt-0.4.0 spec/unit/question/initialize_spec.rb
tty-prompt-0.3.0 spec/unit/question/initialize_spec.rb