Sha256: 18f7b2f007550a7f2ede299c2f3aef26a0d6b297704569e8311f3609c12a30cc
Contents?: true
Size: 275 Bytes
Versions: 14
Compression:
Stored size: 275 Bytes
Contents
require 'spec_helper' describe Coercer::Array, '#to_set' do subject { object.to_set(array) } let(:object) { described_class.new } let(:array) { [ 'a', 1, 'b', 2, 'b', 1, 'a', 2 ] } it { should be_instance_of(Set) } it { should eql(Set[ 'a', 1, 'b', 2 ]) } end
Version data entries
14 entries across 12 versions & 4 rubygems