Sha256: ec9886dd0f4e90ebee35e1b8ad7a80bed66ae06f30c19f39467352a62f224b62

Contents?: true

Size: 496 Bytes

Versions: 7

Compression:

Stored size: 496 Bytes

Contents

require_relative '../spec_helper'
require 'cliutils/messaging'
require 'cliutils/prefs/pref_validators/pref_validator'
require File.join(File.dirname(__FILE__), '..', '..', 'support/test_validator_empty')

describe CLIUtils::TestValidatorEmpty do
  it 'raises an exception if `validate` is not implemented' do
    m = '`validate` method not implemented on caller: CLIUtils::TestValidatorEmpty'
    expect { CLIUtils::TestValidatorEmpty.new.validate('') }.to raise_error(RuntimeError, m)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cliutils-2.2.6 spec/validator/pref_validator_spec.rb
cliutils-2.2.5 spec/validator/pref_validator_spec.rb
cliutils-2.2.4 spec/validator/pref_validator_spec.rb
cliutils-2.2.3 spec/validator/pref_validator_spec.rb
cliutils-2.2.2 spec/validator/pref_validator_spec.rb
cliutils-2.2.1 spec/validator/pref_validator_spec.rb
cliutils-2.2.0 spec/validator/pref_validator_spec.rb