Sha256: 023f35c6a092d70aef7544a2a164f45c732c705c4db452c1cb357f877246efdb

Contents?: true

Size: 248 Bytes

Versions: 41

Compression:

Stored size: 248 Bytes

Contents

require 'mechanize/test_case'

class TestMechanizeRedirectNotGetOrHead < Mechanize::TestCase

  def test_to_s
    page = fake_page

    error = Mechanize::RedirectNotGetOrHeadError.new(page, :put)

    assert_match(/ PUT /, error.to_s)
  end

end

Version data entries

41 entries across 41 versions & 5 rubygems

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