Sha256: 5aa1ef022ba28e4f889b194f996e9f7a75589a4d937bdbe459224c575d547841

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:described_class) { Class.new(Attribute)               }
  let(:name)            { :name                              }
  let(:required)        { true                               }
  let(:options)         { { :required => required }          }
  let(:object)          { described_class.new(name, options) }

  it_should_behave_like 'a hash method'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/attribute/hash_spec.rb