pharo icon indicating copy to clipboard operation
pharo copied to clipboard

(TestAsserter >> shouldnt: raise: whoseDescriptionIncludes: description:) is sending an unimplemented messsage

Open aboubacardiawara opened this issue 2 years ago • 2 comments

Bug description

(self
     executeShould: aBlock
     inScopeOf: anExceptionalEvent
     withDescriptionContaining: substring)

This method is not implemented in TestAsserter, but called.

To Reproduce Steps to reproduce the behavior:

  1. Open the finder (shift + enter)
  2. Type in the finder search bar: TestAsserter >> shouldnt: raise: whoseDescriptionIncludes: description:
  3. Open the implementation
  4. See the warning

aboubacardiawara avatar Jul 25 '22 08:07 aboubacardiawara

Simillar issue

https://github.com/pharo-project/pharo/issues/11475#issue-1316455581

aboubacardiawara avatar Jul 25 '22 08:07 aboubacardiawara

Take a look on:

TestCase >> executeShould: aBlock inScopeOf: anExceptionalEvent withDescriptionContaining:.

Maybe it can be moved to its superclass: TestAsserter

aboubacardiawara avatar Jul 25 '22 14:07 aboubacardiawara