spec/unit/virtus/attribute/hash_spec.rb in virtus-0.0.5 vs spec/unit/virtus/attribute/hash_spec.rb in virtus-0.0.6
- old
+ new
@@ -1,9 +1,11 @@
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_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