Sha256: 1437832a6d2e37a97bac7406787a7df19b72cb778a1934aab27a6c8558b93428
Contents?: true
Size: 371 Bytes
Versions: 1
Compression:
Stored size: 371 Bytes
Contents
require 'spec_helper' describe 'Veritas::Attribute#hash' do subject { object.hash } let(:klass) { Attribute::Integer } let(:name) { :id } let(:options) { { :size => 1..10 } } let(:object) { klass.new(name, options) } it_should_behave_like 'a hash method' it { should == klass.hash ^ name.hash ^ options.hash } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/attribute/hash_spec.rb |