I'd probably check here to make sure the gem was actually deleted.  Consider the situation where you're redirecting to the wrong page, a page where that ruby_gem name would not have appeared in the first place.  Then your test would pass even though the gem is not deleted.  (Will merge in as is, just FYI.)