You basically can't mock this in a sensible fashion with rspec-mocks because all of our mocking suite is predicated on already having loaded the class, at which point your method has already been invoked. Even if you could control the loading and pre-emptively mock it during loading rspec-mocks are not designed to survive across tests and loading classes happens only once so would leak mocks amongst tests.
Why are you attempting to mock this method?
One of the general peices of advise with mocking is not to mock things you don't own, so if the answer is to make assertions upon what including the gem does, you are better off making those assertions based on the result rather than mocking it.
If the answer is because it makes some expensive API call you'd like to avoid in tests, I would suggest instead either using something like VCR to mock out the API call, (which would have to be done before loading 'a') or to instead subsitute this module entirely for a fake "test adapter" you control in its entirity (an implementation of the adapter pattern).
Cheers
Jon