Sha256: 54e3fa88526ea73be7fbb2ba3a15b8dfe17c48ccf83f1df451e468ff7341fe3a

Contents?: true

Size: 310 Bytes

Versions: 19

Compression:

Stored size: 310 Bytes

Contents

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

19 entries across 19 versions & 2 rubygems

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