ccaum/puppet — comment on commit 26a8fbbba8eb346725548de61b922daea77c6eb4
File: spec/unit/provider/user/windows_adsi_spec.rb line 77
By ccaum:

But the implementation doesn't call commit. Setting the password with the password= method calls commit on the object for you. If I add the expects(:commit) then the tests fail with:

expected exactly once, not yet invoked: Puppet::Util::ADSI::User.create('testuser')