Property: Reorder comparison with NOT_PASSED.
Property: Reorder comparison with NOT_PASSED.

The original comparison `value == NOT_PASSED` ends up calling `.<=>` on
value under the hood. This relies on the implementation of `<=>`/`cmp`
not being broken in that class.

Unfortunately, some classes like OpenSSL::X509::Name have broken
implementations of `<=>` that raise TypeError instead of returning nil
for mismatched types. https://github.com/ruby/openssl/pull/264

As a result, currently, if you attempt to set a resource property to an
OpenSSL::X509::Name object, the result is a TypeError.

With this change, we use the implementation of comparison from the
NOT_PASSED object instead, which we know will work no matter what.

Signed-off-by: Andy Brody <46f1a0bd5592a2f9244ca321b129902a06b53e03@abrody.com>

mattray/chef,jaymzh/chef,higanworks/chef,chef/chef,chef/chef,higanworks/chef,tas50/chef-1,jaymzh/chef,tas50/chef-1,chef/chef,jaymzh/chef,mattray/chef,gene1wood/chef,nvwls/chef,higanworks/chef,higanworks/chef,tas50/chef-1,gene1wood/chef,mwrock/chef,mattray/chef,mattray/chef,chef/chef,gene1wood/chef,MsysTechnologiesllc/chef,MsysTechnologiesllc/chef,tas50/chef-1,mwrock/chef,MsysTechnologiesllc/chef,nvwls/chef,mattray/chef,nvwls/chef,MsysTechnologiesllc/chef,mwrock/chef,nvwls/chef,mwrock/chef,jaymzh/chef,nvwls/chef,higanworks/chef,nvwls/chef,gene1wood/chef