On 13/10/10 11:02 +0200, [email protected] wrote:
>From: Ladislav Martincik <[email protected]>
>
>---
> src/spec/controllers/users_controller_spec.rb |    6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
>diff --git a/src/spec/controllers/users_controller_spec.rb 
>b/src/spec/controllers/users_controller_spec.rb
>index 7cd14a0..ad1f1cd 100644
>--- a/src/spec/controllers/users_controller_spec.rb
>+++ b/src/spec/controllers/users_controller_spec.rb
>@@ -47,7 +47,7 @@ describe UsersController do
>                                    :password_confirmation => "testpass" }
>         }.should change{ User.count }
>         user = User.find(:first, :conditions => ['login = ?', "tuser2"])
>-        response.should redirect_to(user_url(user))
>+        response.should redirect_to(users_url)
>       end
> 
>       it "fails to create pool" do
>@@ -79,7 +79,7 @@ describe UsersController do
>                                :password_confirmation => "testpass" }
>     }.should change{ User.count }
>     user = User.find(:first, :conditions => ['login = ?', "tuser3"])
>-    response.should redirect_to(user_url(user))
>+    response.should redirect_to(users_url)
>   end
> 
>   it "should not allow a regular user to create user" do
>@@ -106,7 +106,7 @@ describe UsersController do
>   test "should update user" do
>     UserSession.create(@tuser)
>     put :update, :id => @tuser.id, :user => { }, :save =>'true'
>-    response.should redirect_to(account_path)
>+    response.should redirect_to(users_path)
>   end
> 
>   # checks whether proper error template is rendered when an exception raises

This patch makes my cucumber green again ;-) ACK!

   -- Michal

-- 
--------------------------------------------------------
Michal Fojtik, [email protected]
Deltacloud API: http://deltacloud.org
--------------------------------------------------------
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to