Sha256: c326fdc654df7494d7c4594cb104d9f99c7f068162addecd489f78e70539c293

Contents?: true

Size: 554 Bytes

Versions: 3

Compression:

Stored size: 554 Bytes

Contents

require 'spec_helper'

describe Direct::API::V5::Refinements::Camelize do
  using described_class

  describe 'String#camelize' do
    it 'camelize string' do
      expect('consider_working_weekends'.camelize).to eq('ConsiderWorkingWeekends')
    end

    it 'return self if already camelized' do
      expect('ConsiderWorkingWeekends'.camelize).to eq('ConsiderWorkingWeekends')
    end
  end

  describe 'Symbol#camelize' do
    it 'camelize symbol' do
      expect(:consider_working_weekends.camelize).to eq(:ConsiderWorkingWeekends)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
direct-api-v5-0.1.2 spec/direct/api/v5/refinements/camelize_spec.rb
direct-api-v5-0.1.1 spec/direct/api/v5/refinements/camelize_spec.rb
direct-api-v5-0.1.0 spec/direct/api/v5/refinements/camelize_spec.rb