Sha256: 81b14d20e56412c2b8172ea39b6b8b2802b432e03cbbd1ccdf5b70964f17c220

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

require 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

1 entries across 1 versions & 1 rubygems

Version Path
mechanize-0.7.8 test/test_content_type.rb