Sha256: 3a3c9a4736d797a31042f2cd38c62f7751607407851b6fa926723c91fed259ca

Contents?: true

Size: 524 Bytes

Versions: 15

Compression:

Stored size: 524 Bytes

Contents

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

class TestGzip < Test::Unit::TestCase
  def setup
    @agent = WWW::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(WWW::Mechanize::Page, page)
    assert_match('Hello World', page.body)
  end
end

Version data entries

15 entries across 15 versions & 5 rubygems

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