Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

use to_param instead of id

  • Loading branch information...
commit e1af7882d7af867979954e48d79b5660958ee11a 1 parent f497684
authored December 11, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  test/integration/user_flows_test.rb
4  test/integration/user_flows_test.rb
@@ -59,7 +59,7 @@ class UserFlowsTest < ActionDispatch::IntegrationTest
59 59
     user, followed = users(:test), users(:test2)
60 60
     post_via_redirect('/login', { :username => user.username, :password => 'private' })
61 61
 
62  
-    post_via_redirect "/subscriptions/#{followed.id}"
  62
+    post_via_redirect "/subscriptions/#{followed.to_param}"
63 63
     assert_select '.notice.success', 'You are now following testuser2.'
64 64
 
65 65
     get '/users'
@@ -67,7 +67,7 @@ class UserFlowsTest < ActionDispatch::IntegrationTest
67 67
     assert_select 'ul#following li', :count => 1
68 68
     assert_select 'ul#following li:first-child .username', 'testuser2'
69 69
 
70  
-    delete "/subscriptions/#{followed.id}"
  70
+    delete "/subscriptions/#{followed.to_param}"
71 71
     follow_redirect!
72 72
     assert_select '.notice.success', 'You are no longer following testuser2.'
73 73
 

0 notes on commit e1af788

Please sign in to comment.
Something went wrong with that request. Please try again.