Why would
response.body.should have_selector "result"
pass and
response.should have_selector "result"
not pass?
I understand ActionController::TestResponse is returned as the response and response.body is a String.
Does have_selector only work on strings?
response is the whole response object, which contains lots of different properties. It is not a string, and have_selector tests for a string.