Sha256: ae844f8f59e631f639cb48f55500cf0cef7d33718fb4877dc1887590268b1a17

Contents?: true

Size: 465 Bytes

Versions: 4

Compression:

Stored size: 465 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Attribute, '#hash' do
  subject { object.hash }

  let(:described_class) { Attribute::Integer                 }
  let(:name)            { :id                                }
  let(:options)         { { :size => 1..10 }                 }
  let(:object)          { described_class.new(name, options) }

  it_should_behave_like 'a hash method'

  it { should == described_class.hash ^ name.hash ^ options.hash }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veritas-0.0.7 spec/unit/veritas/attribute/hash_spec.rb
veritas-0.0.6 spec/unit/veritas/attribute/hash_spec.rb
veritas-0.0.5 spec/unit/veritas/attribute/hash_spec.rb
veritas-0.0.4 spec/unit/veritas/attribute/hash_spec.rb