refinery/refinerycms — pull request #1927 by keram (2012-09-05 19:34:13+00:00)
Title: correct link test if HTTP response is kind of Success or Redirection

I swear it worked before! Until someone send my bugreport... .)

Explanation:
If url is valid ``Net::HTTP.get_response(url)`` returns ``Net::HTTPOK`` class which is kind of ``Net::HTTPSuccess`` but fails in test ``[Net::HTTPSuccess].include..``

In generally I thinking about refactoring all this method, because:
- On localhost I have problem test other url than on port 80.
- https links (not tested)
- intranet links, other networks etc may been also problem and user can be confused with failing validation.

Couldn't be better put here only simple regexp?