Sha256: ccab3f13ebfe65c6c7cdcb56211b2d2f165f62cc707936b9495b4e9fdc9a553f

Contents?: true

Size: 490 Bytes

Versions: 7

Compression:

Stored size: 490 Bytes

Contents

require_relative '../spec_helper'
require 'cliutils/messaging'
require 'cliutils/prefs/pref_behaviors/pref_behavior'
require File.join(File.dirname(__FILE__), '..', '..', 'support/test_behavior_empty')

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

Version data entries

7 entries across 7 versions & 1 rubygems

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