Sha256: 1dbbcf2a817c75abbaec1971f5b54fec76e7e3b466cf246635c450a1c9a25df7

Contents?: true

Size: 405 Bytes

Versions: 5

Compression:

Stored size: 405 Bytes

Contents

require 'spec_helper'

describe Virtus::Attribute::Hash do
  it_should_behave_like 'Attribute' do
    let(:attribute_name)         { :settings }
    let(:attribute_value)        { Hash[:one => 1] }
    let(:attribute_value_other)  { Hash[:two => 2] }
    let(:attribute_default)      { Hash.new }
    let(:attribute_default_proc) { lambda { |instance, attribute| attribute.name == :settings } }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
virtus-0.0.10 spec/unit/virtus/attribute/hash_spec.rb
virtus-0.0.9 spec/unit/virtus/attribute/hash_spec.rb
virtus-0.0.8 spec/unit/virtus/attribute/hash_spec.rb
virtus-0.0.7 spec/unit/virtus/attribute/hash_spec.rb
virtus-0.0.6 spec/unit/virtus/attribute/hash_spec.rb