Sha256: c55a2d64d8168c313eb7eff5de4499893ad0b1ad7cf4f0556ce3c4f69969ccd2

Contents?: true

Size: 399 Bytes

Versions: 7

Compression:

Stored size: 399 Bytes

Contents

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

describe CLIUtils::SuffixBehavior do
  it 'prefixes its input' do
    b = CLIUtils::SuffixBehavior.new
    b.parameters = { suffix: ' - signing off!' }
    expect(b.evaluate('bachya')).to eq('bachya - signing off!')
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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