Sha256: 60bae7d7903e9535bf2c2404141a8b5a5149ce26c8aa46b39b3942b924811d87

Contents?: true

Size: 400 Bytes

Versions: 19

Compression:

Stored size: 400 Bytes

Contents

require 'spec_helper'

describe Rgentpl::CoreExt do
  let(:str) { String.new('My custom string') }
  let(:result) { 'MyCustomString' }

  describe '.camelize' do
    it 'format according to camelize rules' do
      expect(str.camelize).to eq result
    end
  end

  describe '.camelize!' do
    it 'persists result into variable' do
      expect { str.camelize! }.to change { str }
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rgentpl-1.2.6 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.2.5 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.2.4.3 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.2.4.2 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.2.4.1 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.2.4 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.2.3 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.2.2 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.2.1 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.2.0 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.0.9 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.0.8 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.0.7 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.0.6 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.0.5 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.0.4 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.0.3 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.0.2 spec/lib/rgentpl/core_ext/string_spec.rb
rgentpl-1.0.1 spec/lib/rgentpl/core_ext/string_spec.rb