rapid7/metasploit-framework — pull request #3596 by darkbushido (2014-07-31 20:06:11+00:00)
Title: .to_credential now assigns a parent

##Validation steps
- [ ] launch msfconsole
- [ ] enter irb
- [ ] `core = Metasploit::Credential::Core.last`
- [ ] `cred = core.to_credential`
- [ ] `cred.parent == core` this should be true
- [ ] `cred = Metasploit::Framework::Credential.new(public: 'username', private: 'password')`
- [ ] `cred.parent.nil?` should be true
- [ ] `new_cred = cred.to_credential`
- [ ] `new_cred.parent == cred`
since we are returning the same object instead of duplicating it and returning a new one
- [ ] `cred.parent == cred`