Sha256: 2abb9bee23ce4fda2cd0c27bd89d11cd7e147bc854700a0de0e2a3932aff01d0

Contents?: true

Size: 395 Bytes

Versions: 7

Compression:

Stored size: 395 Bytes

Contents

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

describe CLIUtils::PrefixBehavior do
  it 'prefixes its input' do
    b = CLIUtils::PrefixBehavior.new
    b.parameters = { prefix: 'Starting up: ' }
    expect(b.evaluate('bachya')).to eq('Starting up: bachya')
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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