Sha256: e65cacbceca888be22ff9118f4a983a56c3f725dfea08a9edcfd41c806feefa4
Contents?: true
Size: 433 Bytes
Versions: 41
Compression:
Stored size: 433 Bytes
Contents
require 'mechanize/test_case' class TestMechanizeRedirectLimitReachedError < Mechanize::TestCase def setup super @error = Mechanize::RedirectLimitReachedError.new fake_page, 10 end def test_message assert_equal 'Redirect limit of 10 reached', @error.message end def test_redirects assert_equal 10, @error.redirects end def test_response_code assert_equal 200, @error.response_code end end
Version data entries
41 entries across 41 versions & 5 rubygems