Sha256: fa7899539ddcdf7f12c43a56c47490f8973ef2d192b656ce2fe0e4c318842516
Contents?: true
Size: 632 Bytes
Versions: 3
Compression:
Stored size: 632 Bytes
Contents
require 'test_helper' require File.join(File.dirname(__FILE__), '..', '..', 'lib/cliutils/prefs/pref_validators/filepath_exists_validator') # Tests for the Configurator class class TestFilepathExistsValidator < Test::Unit::TestCase def test_valid v = CLIUtils::FilepathExistsValidator.new v.validate('/tmp') assert_equal(v.is_valid, true) assert_equal(v.message, 'Path does not exist locally: /tmp') end def test_invalid v = CLIUtils::FilepathExistsValidator.new v.validate('asdasd') assert_equal(v.is_valid, false) assert_equal(v.message, 'Path does not exist locally: asdasd') end end
Version data entries
3 entries across 3 versions & 1 rubygems