Sha256: 1a24cb1bc14a929b4dcd0f7eab6a16a46dee65389b834f79b0351f7c11d1ad68
Contents?: true
Size: 559 Bytes
Versions: 2
Compression:
Stored size: 559 Bytes
Contents
# # testing rufus-jig # # Fri Sep 24 17:11:26 JST 2010 # require File.join(File.dirname(__FILE__), 'base') class UtAuthTest < Test::Unit::TestCase def setup @h = Rufus::Jig::Http.new( '127.0.0.1', 4567, :basic_auth => %w[ admin nimda ]) end def teardown @h.close end def test_denied h = Rufus::Jig::Http.new('127.0.0.1', 4567) assert_raise Rufus::Jig::HttpError do h.get('/protected') end end def test_authorized assert_equal( { 'info' => 'secretive' }, @h.get('/protected')) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rufus-jig-0.1.23 | test/ut_8_auth.rb |
rufus-jig-0.1.22 | test/ut_8_auth.rb |