Sha256: 06b936dc7adf067d6d325244a97b32f466a19ccabbea24f72823128cab867485

Contents?: true

Size: 395 Bytes

Versions: 15

Compression:

Stored size: 395 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "helper"))

class TestContentType < Test::Unit::TestCase
  def setup
    @agent = WWW::Mechanize.new
  end

  def test_application_xhtml_xml
    url = 'http://localhost/content_type_test?ct=application/xhtml%2Bxml'
    page = @agent.get url
    assert_equal WWW::Mechanize::Page, page.class, "xhtml docs should return a Page"
  end
end

Version data entries

15 entries across 15 versions & 5 rubygems

Version Path
eric-mechanize-0.9.3.20090623142847 test/test_content_type.rb
knu-mechanize-0.9.3.20090623142847 test/test_content_type.rb
tenderlove-mechanize-0.9.3.20090617085936 test/test_content_type.rb
tenderlove-mechanize-0.9.3.20090623142847 test/test_content_type.rb
mechanize-ntlm-0.9.1 test/test_content_type.rb
mechanize-0.8.0 test/test_content_type.rb
mechanize-0.8.2 test/test_content_type.rb
mechanize-0.8.1 test/test_content_type.rb
mechanize-0.8.4 test/test_content_type.rb
mechanize-0.8.3 test/test_content_type.rb
mechanize-0.9.0 test/test_content_type.rb
mechanize-0.9.1 test/test_content_type.rb
mechanize-0.9.3 test/test_content_type.rb
mechanize-0.8.5 test/test_content_type.rb
mechanize-0.9.2 test/test_content_type.rb