Permalink
Browse files

Test for #head

  • Loading branch information...
1 parent 596a972 commit 9952b8d4efa584b4d575cc3b33dc14b09f802362 @sr sr committed with rtomayko Feb 22, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 test/test_test.rb
View
@@ -31,7 +31,7 @@ def request_params
}
end
- it 'allows GET/POST/PUT/DELETE' do
+ it 'allows GET/HEAD/POST/PUT/DELETE' do
get '/'
assert_equal('GET', request['REQUEST_METHOD'])
@@ -43,6 +43,9 @@ def request_params
delete '/'
assert_equal('DELETE', request['REQUEST_METHOD'])
+
+ head '/'
+ assert_equal('0', headers['Content-Length'])
end
it 'allows to specify a body' do

0 comments on commit 9952b8d

Please sign in to comment.