Sha256: fd06da458b3d076c717cd55e61719b1c7fcf4f1d5bd58f78b4e7d5338e05b546

Contents?: true

Size: 591 Bytes

Versions: 15

Compression:

Stored size: 591 Bytes

Contents

require 'spec_helper'

RSpec.describe Hash do
  subject { { test: :me, not: :me } }

  describe '#slice' do
    specify { expect(subject.slice(:test)).to eq(test: :me) }
  end

  describe '#slice!' do
    specify { expect { subject.slice!(:test) }.to change { subject }.to(test: :me) }
  end
end

RSpec.describe String do
  describe '#classify' do
    subject { 'under_scored_string' }
    its(:classify) { is_expected.to eq('UnderScoredString') }
  end

  describe '#camelize' do
    subject { 'under_scored_string' }
    its(:camelize) { is_expected.to eq('UnderScoredString') }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-5.0.2 spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
sidekiq-unique-jobs-5.0.1 spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
sidekiq-unique-jobs-5.0.0 spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
sidekiq-unique-jobs-4.0.18 spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
sidekiq-unique-jobs-4.0.17 spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
sidekiq-unique-jobs-4.0.16 spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
sidekiq-unique-jobs-4.0.15 spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
sidekiq-unique-jobs-4.0.13 spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
sidekiq-unique-jobs-4.0.12 spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
sidekiq-unique-jobs-4.0.11 spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
sidekiq-unique-jobs-4.0.10 spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
sidekiq-unique-jobs-4.0.9 spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
sidekiq-unique-jobs-4.0.8 spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
sidekiq-unique-jobs-4.0.7 spec/lib/sidekiq_unique_jobs/core_ext_spec.rb
sidekiq-unique-jobs-4.0.0 spec/lib/sidekiq_unique_jobs/core_ext_spec.rb