Closed tfuda closed 8 years ago
Hi, I'm kind of surprised this issue hasn't been reported before, but the fix seems solid. I'd very much enjoy a pull request, and I'm happy to review.
I just realized I opened this issue in the wrong project. This is an fflib-apex-common test class... Test_ApplicationTest. Sorry. I'll submit a pull request to fflib-apex-common.
Ah yes, of course! I'll see you over in fflib-apex-common for that pull request :)
We recently had to deploy the fflib-apex-mocks classes into one of our namespaced package development orgs because we updated to the latest fflib-apex-common classes, and that introduced a dependency on fflib-apex-mocks. When I run the unit tests for the fflib-apex-mocks classes, I get the following error from Test_ApexMocksTest:
There are two assertions in this test method that are looking for exact string matches on the exception message, but when run in a namespaced org, the exception message doesn't match because the fflib classes are prefixed with the package namespace. I made the following change to use a regular expression that is tolerant of the package namespace prefix in order to check the exception messages:
I can submit a pull request for this if you like.