diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-03-18 09:05:47 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-03-18 09:12:18 +0000 |
commit | b8d44ff60c5cd6db6b971e2206cf18b5420a95cb (patch) | |
tree | bc09524c2aeac02a6b4eec4a3a3f86b92fb7b312 /test/test_watcher.rb | |
parent | 7c7e34dab18331082fe7b703b9bbdd40ea5bcbf6 (diff) | |
download | raindrops-b8d44ff60c5cd6db6b971e2206cf18b5420a95cb.tar.gz |
We know exactly when to invalidate based on the delay :)
Diffstat (limited to 'test/test_watcher.rb')
-rw-r--r-- | test/test_watcher.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test_watcher.rb b/test/test_watcher.rb index f353862..86c97d8 100644 --- a/test/test_watcher.rb +++ b/test/test_watcher.rb @@ -50,6 +50,20 @@ class TestWatcher < Test::Unit::TestCase check_headers(resp.headers) end + def test_queued_txt + resp = @req.get "/queued/#@addr.txt" + assert_equal 200, resp.status.to_i + assert_equal "text/plain", resp.headers["Content-Type"] + check_headers(resp.headers) + end + + def test_queued_html + resp = @req.get "/queued/#@addr.html" + assert_equal 200, resp.status.to_i + assert_equal "text/html", resp.headers["Content-Type"] + check_headers(resp.headers) + end + def test_reset resp = @req.post "/reset/#@addr" assert_equal 302, resp.status.to_i |