Sha256: 6ac743a549c4514c1a478868e8a9689bf72f2b00d32a67c5e5c7c21ca1102bfc

Contents?: true

Size: 449 Bytes

Versions: 5

Compression:

Stored size: 449 Bytes

Contents

describe Rake::Funnel::Extensions::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

5 entries across 5 versions & 1 rubygems

Version Path
rake-funnel-0.3.2.pre spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.3.1.pre spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.3.0.pre spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.2.0.pre spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.1.0.pre spec/rake/funnel/extensions/case/pascal_case_spec.rb