Skip to content

Commit

Permalink
promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Sep 4, 2009
1 parent 560049c commit f38d39b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CREDITS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ The main project team

John Mettraux ( project lead ( john >at< gmail.com ) )
Kenneth Kalmer - enhanced authentication, daemonization
Gonzalo Suarez - enhanced authentication, JSON
Nando Sola - enhanced authentication, JSON


Contributors
------------

Gonzalo Suarez - enhanced authentication
Nando Sola - enhanced authentication
Nicholas Petrella - participant patches


Expand Down
6 changes: 3 additions & 3 deletions test/ft_auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_basicauth_wrong_pass
#assert_equal(
# [ 401, { 'WWW-Authenticate'=>'Basic realm="test-realm"' }, [] ], res)

assert_equal res[0], 401
assert_equal 401, res[0]
assert res[1].has_key?('WWW-Authenticate')
end

Expand All @@ -96,8 +96,8 @@ def test_basicauth_in_alice

res = RuoteRest::RackBasicAuth.new(@ab, :realm => 'test-realm').call(env)

assert_equal('alice', env['REMOTE_USER'])
assert_equal(true, env[:ruote_authenticated])
assert_equal 'alice', env['REMOTE_USER']
assert_equal true, env[:ruote_authenticated]
end

def test_basicauth_in_bob
Expand Down

0 comments on commit f38d39b

Please sign in to comment.