Closed capoferro closed 10 years ago
Without the addition of type checking, the following would cause a stack trace:
env_object.override_attributes = { a: { b: true } } env_object.unset_override_attribute("a.b.c")
With this change, the above causes no change to the attributes Mash as the c key does not exist.
c
This also includes a refactor of the EnvironmentObject test suite to DRY it up.
:+1:
Without the addition of type checking, the following would cause a stack trace:
With this change, the above causes no change to the attributes Mash as the
c
key does not exist.This also includes a refactor of the EnvironmentObject test suite to DRY it up.