More Ruby Testing Archaeology

I made some progress on this.

If something is a class, like “page” in the Hartl tutorial (like on say spec/requests/static_pages_spec.rb)
you could just do

which would give you

I don’t know why I didn’t think of that before.

In that file he also calls some voodoo methods. In before do he has:

and

sign_in and visit are methods. You can get these by doing this:

or you could do that on one line each like this:

Which will give you:

Granted, getting “Object” is not too helpful. But it is some progress.

Someone on the Rails core team has a post about finding methods here.