Sha256: 609a53fc0e8886a2d59f015f305bdf0a8224a23177a2e2f882b587c4f2cd607a
Contents?: true
Size: 573 Bytes
Versions: 9
Compression:
Stored size: 573 Bytes
Contents
require File.dirname(__FILE__) + "/helper" class TestIfModifiedSince < Test::Unit::TestCase def setup @agent = WWW::Mechanize.new end def test_get_twice assert_equal(0, @agent.history.length) page = @agent.get('http://localhost/if_modified_since') assert_match(/You did not send/, page.body) assert_equal(1, @agent.history.length) page2 = @agent.get('http://localhost/if_modified_since') assert_equal(2, @agent.history.length) assert_equal(page.object_id, page2.object_id) assert_match(/You did not send/, page.body) end end
Version data entries
9 entries across 9 versions & 1 rubygems