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