Sha256: cfdc807903a31b6f8f4f73d99ee9287632d7dd5c74744039bf6cab79456acd5a

Contents?: true

Size: 340 Bytes

Versions: 5

Compression:

Stored size: 340 Bytes

Contents

# frozen_string_literal: true
require 'mechanize/test_case'

class TestMechanizeRedirectLimitReachedError < Mechanize::TestCase

  def test_to_s
    page = fake_page

    error = Mechanize::ElementNotFoundError.new(page, :element, :conditions)

    assert_match(/element/, error.to_s)
    assert_match(/conditions/, error.to_s)
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mechanize-2.12.2 test/test_mechanize_element_not_found_error.rb
mechanize-2.12.1 test/test_mechanize_element_not_found_error.rb
mechanize-2.12.0 test/test_mechanize_element_not_found_error.rb
mechanize-2.11.0 test/test_mechanize_element_not_found_error.rb
mechanize-2.10.1 test/test_mechanize_element_not_found_error.rb