Sha256: 2f286f7b3f6cae2b46e4128c99d5bb402aa9dcb351de5fa332b397e0ffd9a4a5
Contents?: true
Size: 722 Bytes
Versions: 7
Compression:
Stored size: 722 Bytes
Contents
# # Testing rufus-verbs # # jmettraux@gmail.com # # Sun Jan 13 20:02:25 JST 2008 # require 'test/unit' require 'testbase' require 'rufus/verbs' class RedirTest < Test::Unit::TestCase include TestBaseMixin include Rufus::Verbs def test_0 expect 200, {}, get(:uri => "http://localhost:7777/things") end # # testing the :no_redirections directive # def test_1 res = get "http://localhost:7777/things", :no_redirections => true assert_equal 303, res.code.to_i res = get("http://localhost:7777/things", :noredir => true) assert_equal 303, res.code.to_i expect 200, {}, get("http://localhost:7777/items", :noredir => true) end end
Version data entries
7 entries across 7 versions & 1 rubygems