lib/datacaster/base.rb in datacaster-3.0.0 vs lib/datacaster/base.rb in datacaster-3.1.0

- old
+ new

@@ -44,10 +44,10 @@ def cast_errors(error_caster) ContextNodes::ErrorsCaster.new(self, error_caster) end def then(other) - ThenNode.new(self, other) + ThenNode.new(self, DefinitionDSL.expand(other)) end def with_context(context) unless context.is_a?(Hash) raise "with_context expected Hash as argument, got #{context.inspect} instead"