Sha256: 5b39d60f9e16367061389c7785cb3de1b9f391bc938cec426766825fe22e0fb9

Contents?: true

Size: 465 Bytes

Versions: 11

Compression:

Stored size: 465 Bytes

Contents

describe Rake::Funnel::Extensions::CamelCase do
  it 'should not touch values without underscores' do
    expect('foo'.camelize).to eq('foo')
  end

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

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rake-funnel-0.3.2.pre spec/rake/funnel/extensions/case/camel_case_spec.rb
rake-funnel-0.3.1.pre spec/rake/funnel/extensions/case/camel_case_spec.rb
rake-funnel-0.3.0.pre spec/rake/funnel/extensions/case/camel_case_spec.rb
rake-funnel-0.2.0.pre spec/rake/funnel/extensions/case/camel_case_spec.rb
rake-funnel-0.1.0.pre spec/rake/funnel/extensions/case/camel_case_spec.rb
rake-funnel-0.0.6.pre spec/rake/funnel/extensions/camel_case_spec.rb
rake-funnel-0.0.5.pre spec/rake/funnel/extensions/camel_case_spec.rb
rake-funnel-0.0.4.pre spec/rake/funnel/extensions/camel_case_spec.rb
rake-funnel-0.0.3.pre spec/rake/funnel/extensions/camel_case_spec.rb
rake-funnel-0.0.2.pre spec/rake/funnel/extensions/camel_case_spec.rb
rake-funnel-0.0.1.pre spec/rake/funnel/extensions/camel_case_spec.rb