Sha256: 4e686d5e78121226809b60ac4ce3976696bb9c8205e03988faa3b3bafad237a6

Contents?: true

Size: 372 Bytes

Versions: 3

Compression:

Stored size: 372 Bytes

Contents

require 'test_helper'

require File.join(File.dirname(__FILE__), '..', '..', 'lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior')

# Tests for the Configurator class
class TestExpandFilepathBehavior < Test::Unit::TestCase
  def test_evaluation
    v = CLIUtils::ExpandFilepathBehavior.new
    assert_equal(v.evaluate('~/test'), "#{ ENV['HOME'] }/test")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cliutils-2.1.4 test/behavior_tests/expand_filepath_behavior_test.rb
cliutils-2.1.3 test/behavior_tests/expand_filepath_behavior_test.rb
cliutils-2.1.2 test/behavior_tests/expand_filepath_behavior_test.rb