Sha256: 48c08ebb78657da7fb7b230326a623d7a81929c644346afb44f786bcf6059549

Contents?: true

Size: 469 Bytes

Versions: 3

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

describe Rake::Funnel::Extensions::Case::PascalCase do
  it 'should convert strings' do
    expect('foo'.pascalize).to eq('Foo')
  end

  it 'should convert strings with underscores' do
    expect('foo_bar'.pascalize).to eq('FooBar')
  end

  it 'should convert symbols to string' do
    expect(:foo.pascalize).to eq('Foo')
  end

  it 'should convert symbols with underscores' do
    expect(:foo_bar.pascalize).to eq('FooBar')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rake-funnel-0.24.0 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.23.0 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.22.3 spec/rake/funnel/extensions/case/pascal_case_spec.rb