Sha256: 65ba1fb3fbb4b5ec13cef5b463ac1e8139373480199f08850116c73326b5680b

Contents?: true

Size: 391 Bytes

Versions: 7

Compression:

Stored size: 391 Bytes

Contents

require_relative '../spec_helper'
require 'cliutils/messaging'
require 'cliutils/prefs/pref_behaviors/pref_behavior'
require 'cliutils/prefs/pref_behaviors/expand_filepath_behavior'

describe CLIUtils::ExpandFilepathBehavior do
  it 'runs File.expand_path on its input' do
    b = CLIUtils::ExpandFilepathBehavior.new
    expect(b.evaluate('~/test')).to eq("#{ ENV['HOME'] }/test")
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cliutils-2.2.6 spec/behavior/expand_filepath_behavior_spec.rb
cliutils-2.2.5 spec/behavior/expand_filepath_behavior_spec.rb
cliutils-2.2.4 spec/behavior/expand_filepath_behavior_spec.rb
cliutils-2.2.3 spec/behavior/expand_filepath_behavior_spec.rb
cliutils-2.2.2 spec/behavior/expand_filepath_behavior_spec.rb
cliutils-2.2.1 spec/behavior/expand_filepath_behavior_spec.rb
cliutils-2.2.0 spec/behavior/expand_filepath_behavior_spec.rb