berkshelf / ridley

A reliable Chef API client with a clean syntax
Other
230 stars 84 forks source link

Unset environment attribute #248

Closed capoferro closed 10 years ago

capoferro commented 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.

This also includes a refactor of the EnvironmentObject test suite to DRY it up.

KAllan357 commented 10 years ago

:+1: