Fix regexp for $ensure params
authorOKUMURA Takahiro <hfm.garden@gmail.com>
Sat, 4 Jun 2016 18:09:31 +0000 (03:09 +0900)
committerOKUMURA Takahiro <hfm.garden@gmail.com>
Sun, 5 Jun 2016 09:44:25 +0000 (18:44 +0900)
commit459f5158795c25056306a7f51f1cf265bce6895e
tree90620275a18edc3603b279227e00cc22d65920ae
parent797974c0a2a5a095b9ca08c97c2ccb2867a5476d
Fix regexp for $ensure params

/\Aabsent|present\Z/ match wrong values like 'absentaaa' or 'aaapresent'.

And add tests to the context of 'invalid ensure'.
manifests/key.pp
spec/defines/key_spec.rb