Sha256: 4f9540c764817ae7b2cbf87bcd1a2580175d3e626376b3f366ab0a525283cced

Contents?: true

Size: 438 Bytes

Versions: 28

Compression:

Stored size: 438 Bytes

Contents

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

28 entries across 28 versions & 1 rubygems

Version Path
rake-funnel-0.22.2 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.22.1 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.22.0 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.21.2 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.21.1 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.21.0 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.20.2 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.20.1 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.20.0 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.19.0 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.18.0 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.17.0 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.16.1 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.16.0 spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.15.0.pre spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.14.0.pre spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.13.0.pre spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.12.0.pre spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.11.0.pre spec/rake/funnel/extensions/case/pascal_case_spec.rb
rake-funnel-0.10.0.pre spec/rake/funnel/extensions/case/pascal_case_spec.rb