Sha256: e1d155c0ffe977ac8df31c171fecfa5eed8c43b2d35e544c490bc0f63b2f69c1
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
require 'spec_helper' describe Str2Duck::CoreExt::Object do subject { Object.new } describe '#to_duck' do context 'when string given' do it { expect('123'.to_duck).to eq 123 } end context 'when not string given' do subject{ Object.new } it 'should return the object back' do expect(subject.to_duck).to equal subject end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
str2duck-2.0.0 | spec/str2duck/core_ext/object_spec.rb |