Sha256: c683521649bb66ef39e296d52eee5a567e0847c1dde7093670f22415180459b3

Contents?: true

Size: 369 Bytes

Versions: 9

Compression:

Stored size: 369 Bytes

Contents

require 'spec_helper'
require 'dm-core/support/ordered_set'

describe 'DataMapper::OrderedSet#hash' do
  subject { ordered_set.hash }

  let(:entry)       { 1                                     }
  let(:ordered_set) { DataMapper::OrderedSet.new([ entry ]) }

  it { should be_kind_of(Integer) }
  it { should == ordered_set.class.hash ^ ordered_set.entries.hash }
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
ardm-core-1.3.0 spec/unit/data_mapper/ordered_set/hash_spec.rb
ardm-core-1.2.1 spec/unit/data_mapper/ordered_set/hash_spec.rb
dm-core-1.2.1 spec/unit/data_mapper/ordered_set/hash_spec.rb
ghost_dm-core-1.3.0.beta spec/unit/data_mapper/ordered_set/hash_spec.rb
dm-core-1.2.0 spec/unit/data_mapper/ordered_set/hash_spec.rb
dm-core-1.2.0.rc2 spec/unit/data_mapper/ordered_set/hash_spec.rb
dm-core-1.2.0.rc1 spec/unit/data_mapper/ordered_set/hash_spec.rb
dm-core-1.1.0 spec/unit/data_mapper/ordered_set/hash_spec.rb
dm-core-1.1.0.rc3 spec/unit/data_mapper/ordered_set/hash_spec.rb