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

Version Path
mechanize-2.10.0 test/test_mechanize_redirect_limit_reached_error.rb
mechanize-2.9.2 test/test_mechanize_redirect_limit_reached_error.rb
mechanize-2.9.1 test/test_mechanize_redirect_limit_reached_error.rb
mechanize-2.9.0 test/test_mechanize_redirect_limit_reached_error.rb
mechanize-2.8.5 test/test_mechanize_redirect_limit_reached_error.rb
mechanize-2.8.4 test/test_mechanize_redirect_limit_reached_error.rb
mechanize-2.8.3 test/test_mechanize_redirect_limit_reached_error.rb
mechanize-2.8.2 test/test_mechanize_redirect_limit_reached_error.rb
mechanize-2.8.1 test/test_mechanize_redirect_limit_reached_error.rb
mechanize-2.8.0 test/test_mechanize_redirect_limit_reached_error.rb
mechanize-2.7.7 test/test_mechanize_redirect_limit_reached_error.rb
husc-0.2.1 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_redirect_limit_reached_error.rb
husc-0.2.0 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_redirect_limit_reached_error.rb
husc-0.1.1 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_redirect_limit_reached_error.rb
husc-0.1.0 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_redirect_limit_reached_error.rb
mechanize-2.7.6 test/test_mechanize_redirect_limit_reached_error.rb
mechanize-2.7.5 test/test_mechanize_redirect_limit_reached_error.rb
mechanize-2.7.4 test/test_mechanize_redirect_limit_reached_error.rb
mechanize-2.7.3 test/test_mechanize_redirect_limit_reached_error.rb
mechanize-2.7.2 test/test_mechanize_redirect_limit_reached_error.rb