Sha256: 52ea0cb394ad373157550a4bbca3d6f74afad4ec9ef3d6be2057a3ec2eee5db0
Contents?: true
Size: 546 Bytes
Versions: 3
Compression:
Stored size: 546 Bytes
Contents
require "helper" class TestIfModifiedSince < MiniTest::Unit::TestCase def setup @agent = 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
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
aai10-mechanize-2.0.1.0 | test/test_if_modified_since.rb |
neocoin-mechanize-2.0.2 | test/test_if_modified_since.rb |
mechanize-2.0.1 | test/test_if_modified_since.rb |