incubator-heraldry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trot...@apache.org
Subject svn commit: r470940 - in /incubator/heraldry/idp/pip/trunk/test: functional/server_controller_test.rb unit/user_test.rb
Date Fri, 03 Nov 2006 18:44:07 GMT
Author: trotter
Date: Fri Nov  3 10:44:06 2006
New Revision: 470940

URL: http://svn.apache.org/viewvc?view=rev&rev=470940
Log:
* Fixing failing tests.

Modified:
    incubator/heraldry/idp/pip/trunk/test/functional/server_controller_test.rb
    incubator/heraldry/idp/pip/trunk/test/unit/user_test.rb

Modified: incubator/heraldry/idp/pip/trunk/test/functional/server_controller_test.rb
URL: http://svn.apache.org/viewvc/incubator/heraldry/idp/pip/trunk/test/functional/server_controller_test.rb?view=diff&rev=470940&r1=470939&r2=470940
==============================================================================
--- incubator/heraldry/idp/pip/trunk/test/functional/server_controller_test.rb (original)
+++ incubator/heraldry/idp/pip/trunk/test/functional/server_controller_test.rb Fri Nov  3
10:44:06 2006
@@ -214,8 +214,8 @@
     login_as 'quentin'
     Trust.create :profile => profiles(:openid), :expires_at => nil, :trust_root =>
'http://localhost:2000/'
     post_without_ssl :index, create_checkid('openid.trust_root' => 'http://*.localhost:2000/',
-                                'openid.return_to' => 'http://*.localhost:2000/')
-    assert_response :redirect
+                                'openid.return_to' => 'http://test.localhost:2000/')
+    assert_response :success
   end
   
   def test_checkid_immediate_does_not_redirect_to_login

Modified: incubator/heraldry/idp/pip/trunk/test/unit/user_test.rb
URL: http://svn.apache.org/viewvc/incubator/heraldry/idp/pip/trunk/test/unit/user_test.rb?view=diff&rev=470940&r1=470939&r2=470940
==============================================================================
--- incubator/heraldry/idp/pip/trunk/test/unit/user_test.rb (original)
+++ incubator/heraldry/idp/pip/trunk/test/unit/user_test.rb Fri Nov  3 10:44:06 2006
@@ -49,7 +49,7 @@
 
   def test_should_allow_login_with_dash
     u = create_user(:login => 'quentin-jones')
-    assert u.errors.on(:login)
+    assert !u.errors.on(:login)
   end
 
   def test_should_allow_login_with_two_dots



Mime
View raw message