Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test for #head

  • Loading branch information...
commit 9952b8d4efa584b4d575cc3b33dc14b09f802362 1 parent 596a972
@sr sr authored rtomayko committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 test/test_test.rb
View
5 test/test_test.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.