Sha256: 3e383b2fbd000e5ab24881e77ec876fc7ddfcebd78933dbd27d8a7359fd92853
Contents?: true
Size: 555 Bytes
Versions: 1
Compression:
Stored size: 555 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Attribute::Numeric, '#hash' do subject { object.hash } let(:object) { described_class.new(name, options) } let(:name) { :name } let(:options) { { :required => required, :size => size } } let(:required) { true } let(:size) { 0..10 } it_should_behave_like 'a hash method' it { should == described_class.hash ^ name.hash ^ required.hash ^ size.hash } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/attribute/numeric/hash_spec.rb |