PRObject postCopyTo:

After making several configuration changes to Pier Addons, several errors in tests like:

PRCopyCommandTest>>#testCopy
PRCopyCommandTest>>#testCopyTitle
PRCopyCommandTest>>#testLinkOutside
PRFileTest>>#testCopyDecorations
PRDecoratedTest>>#testCopyDecorations

These seemed to all have problems with the super in the below:

 PRDecoration>>postCopyTo: anObject
	super postCopyTo: anObject.
	self setDecorated: anObject

Previously this existed in the class:

 PRObject>>postCopyTo: anObject
	<ignoreForCoverage>

Adding it in the Pier-Model allows it to be independent of the Pillar project, and the tests ran successfully.

Looking for more solutions, it is possible to remove the super call from #postCopyTo: for PRChildren and PRDecoration - this has less impact on other projects.

Posted by John Borden at 8 August 2017, 9:13 pm link