Sha256: 9ef197b53ec1b7e9a3c9ba7de045aa571896e354795ac3f118d0353e36cc9389

Contents?: true

Size: 287 Bytes

Versions: 13

Compression:

Stored size: 287 Bytes

Contents

require 'spec_helper'

describe Virtus::Coercion::Array, '.to_set' do
  subject { object.to_set(array) }

  let(:object) { described_class        }
  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

13 entries across 13 versions & 2 rubygems

Version Path
virtus-0.5.5 spec/unit/virtus/coercion/array/class_methods/to_set_spec.rb
virtus-0.5.4 spec/unit/virtus/coercion/array/class_methods/to_set_spec.rb
virtus-0.5.3 spec/unit/virtus/coercion/array/class_methods/to_set_spec.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/virtus-0.5.2/spec/unit/virtus/coercion/array/class_methods/to_set_spec.rb
virtus-0.5.2 spec/unit/virtus/coercion/array/class_methods/to_set_spec.rb
virtus-0.5.1 spec/unit/virtus/coercion/array/class_methods/to_set_spec.rb
virtus-0.5.0 spec/unit/virtus/coercion/array/class_methods/to_set_spec.rb
virtus-0.4.2 spec/unit/virtus/coercion/array/class_methods/to_set_spec.rb
virtus-0.4.1 spec/unit/virtus/coercion/array/class_methods/to_set_spec.rb
virtus-0.4.0 spec/unit/virtus/coercion/array/class_methods/to_set_spec.rb
virtus-0.3.0 spec/unit/virtus/coercion/array/to_set_spec.rb
virtus-0.2.0 spec/unit/virtus/coercion/array/to_set_spec.rb
virtus-0.1.0 spec/unit/virtus/coercion/array/to_set_spec.rb