It's saying that that particular class, FakeFS::File
, during the course of that particular it
, should have the .chmod
method called on it.
So as long as at some point the code does:
FakeFS::File.chmod
Then that expectation will be satisfied. This is a good way to make sure certain code is being called, or to ignore certain code.
For example, if FakeFS::File.chmod
takes a long time to execute, or would require a lot of code set up, you can just add this expectation.