Sha256: 1f93d76cbb19201d4a45cc0bc66c8410c34f1e6d78b501b891f91e91b28b91ad
Contents?: true
Size: 364 Bytes
Versions: 3
Compression:
Stored size: 364 Bytes
Contents
# encoding: utf-8 RSpec.describe TTY::Prompt::Question, 'convert path' do subject(:prompt) { TTY::TestPrompt.new } it "converts pathname" do path = Pathname.new(::File.join(Dir.pwd, 'spec/unit')) prompt.input << "spec/unit" prompt.input.rewind answer = prompt.ask('File location?', convert: :path) expect(answer).to eql(path) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tty-prompt-0.17.2 | spec/unit/converters/convert_path_spec.rb |
tty-prompt-0.17.1 | spec/unit/converters/convert_path_spec.rb |
tty-prompt-0.17.0 | spec/unit/converters/convert_path_spec.rb |