Sha256: 963854961122346dfdfd1c11f601f4bebcdeb8cabe471dbc06167bc715d3b3d5

Contents?: true

Size: 514 Bytes

Versions: 2

Compression:

Stored size: 514 Bytes

Contents

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

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

  def test_request_empty_gzip
    assert_nothing_raised do
      page = @agent.get("http://localhost/gzip")
    end
  end

  def test_request_gzip
    page = nil
    assert_nothing_raised do
      page = @agent.get("http://localhost/gzip?file=index.html")
    end
    assert_kind_of(Mechanize::Page, page)
    assert_match('Hello World', page.body)
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
kitamomonga-mechanize-0.9.3.20090724215219 test/test_gzipping.rb
tenderlove-mechanize-0.9.3.20090911221705 test/test_gzipping.rb