Sha256: 2fc8d24d83879ea3a21504fe262b549ec6d37e02b953b64c649c2b821af0d25d
Contents?: true
Size: 409 Bytes
Versions: 1
Compression:
Stored size: 409 Bytes
Contents
require 'spec_helper' describe Str2Duck do describe '.parse' do let(:str){'123'} let(:args){[]} subject{ described_class.parse(str,*args) } context 'when no strategy passed only object to be parsed' do it { is_expected.to eq 123 } end context 'when args is limited to datetime type' do let(:args){[:datetime]} it { is_expected.to eq '123' } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
str2duck-2.0.0 | spec/str2duc_spec.rb |