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