Sha256: 79e49bbf18dac46f1d96c920d4bf532c037a1a848659ac0c8f714c15713c4f28

Contents?: true

Size: 504 Bytes

Versions: 13

Compression:

Stored size: 504 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), "..", "lib")

require 'test/unit'
require 'rubygems'
require 'mechanize'
require 'test_includes'

class TestGzip < Test::Unit::TestCase
  include TestMethods

  def setup
    @agent = WWW::Mechanize.new
  end

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mechanize-0.6.10 test/tc_gzipping.rb
mechanize-0.5.4 test/tc_gzipping.rb
mechanize-0.6.0 test/tc_gzipping.rb
mechanize-0.6.1 test/tc_gzipping.rb
mechanize-0.6.4 test/tc_gzipping.rb
mechanize-0.6.6 test/tc_gzipping.rb
mechanize-0.6.7 test/tc_gzipping.rb
mechanize-0.6.8 test/tc_gzipping.rb
mechanize-0.6.3 test/tc_gzipping.rb
mechanize-0.6.9 test/tc_gzipping.rb
mechanize-0.6.5 test/tc_gzipping.rb
mechanize-0.6.11 test/tc_gzipping.rb
mechanize-0.6.2 test/tc_gzipping.rb