Sha256: d0b47eaac7e75f744053ba3938ce950a110ee824e5a34652dcaf6b37c8f4e8dd

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 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 ^ object.type.hash ^ required.hash }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.1 spec/unit/axiom/attribute/numeric/hash_spec.rb