test/simple_test.rb in rufus-verbs-0.4 vs test/simple_test.rb in rufus-verbs-0.5
- old
+ new
@@ -78,6 +78,25 @@
def test_3
r = get "http://rufus.rubyforge.org"
assert_kind_of Net::HTTPOK, r
end
+
+ #
+ # HEAD
+ #
+ def test_4
+
+ res = head "http://localhost:7777/items"
+ assert_equal 200, res.code.to_i
+ assert_nil res.body
+ end
+
+ #
+ # OPTIONS
+ #
+ def test_5
+
+ r = options "http://localhost:7777/items"
+ assert_equal [ :delete, :get, :head, :options, :post, :put], r
+ end
end