Fix whitespace.
Introduce source code formatting helper methods for specs.

I think this makes the specs more readable.
Simplify specs by putting them inside the MethodLog namespace.
Simplify specs using Repository#commit & SourceHelper#source.
Inline local variables and make higher-level assertions.

This makes the test more readable and more end-to-end.
Make assertions in API spec more consistent and thorough.