test/twin/struct/coercion_test.rb in disposable-0.4.5 vs test/twin/struct/coercion_test.rb in disposable-0.4.6
- old
+ new
@@ -8,10 +8,10 @@
class Expense < Disposable::Twin
feature Property::Struct
feature Coercion
property :content do
- property :amount, type: DRY_TYPES_CONSTANT::Float
+ property :amount, type: DRY_TYPES_CONSTANT::Float | DRY_TYPES_CONSTANT::Nil
end
unnest :amount, from: :content
end