Sha256: 063a521b6fc68c8954639c3c8c9d8d1d8ea9f7cfa2e0fa2d73b993f6118208a6

Contents?: true

Size: 338 Bytes

Versions: 7

Compression:

Stored size: 338 Bytes

Contents

require 'cliutils/messaging'
require 'cliutils/prefs/pref_behaviors/pref_behavior'
require 'cliutils/prefs/pref_behaviors/titlecase_behavior'

describe CLIUtils::TitlecaseBehavior do
  it 'titlecases its input' do
    b = CLIUtils::TitlecaseBehavior.new
    expect(b.evaluate('my sentence is here')).to eq('My Sentence Is Here')
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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