Commit a8142d0b9268dfaee614a01ca6edbfa418f2120a
1 parent
430d2a09
Exists in
master
and in
28 other branches
Fix integration test
(ActionItem1608)
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
test/integration/manage_documents_test.rb
@@ -8,7 +8,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest | @@ -8,7 +8,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest | ||
8 | create_user('myuser') | 8 | create_user('myuser') |
9 | 9 | ||
10 | login('myuser', 'myuser') | 10 | login('myuser', 'myuser') |
11 | - assert_tag :tag => 'a', :attributes => { :href => '/myprofile/myuser' } | 11 | + assert_tag :tag => 'a', :attributes => { :href => '/myprofile/%{login}' } |
12 | 12 | ||
13 | get '/myprofile/myuser' | 13 | get '/myprofile/myuser' |
14 | assert_response :success | 14 | assert_response :success |
@@ -38,7 +38,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest | @@ -38,7 +38,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest | ||
38 | article.save! | 38 | article.save! |
39 | 39 | ||
40 | login('myuser', 'myuser') | 40 | login('myuser', 'myuser') |
41 | - assert_tag :tag => 'a', :attributes => { :href => '/myprofile/myuser' } | 41 | + assert_tag :tag => 'a', :attributes => { :href => '/myprofile/%{login}' } |
42 | 42 | ||
43 | get '/myprofile/myuser' | 43 | get '/myprofile/myuser' |
44 | assert_response :success | 44 | assert_response :success |
@@ -72,7 +72,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest | @@ -72,7 +72,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest | ||
72 | 72 | ||
73 | login('myuser', 'myuser') | 73 | login('myuser', 'myuser') |
74 | 74 | ||
75 | - assert_tag :tag => 'a', :attributes => { :href => '/myprofile/myuser' } | 75 | + assert_tag :tag => 'a', :attributes => { :href => '/myprofile/%{login}' } |
76 | get '/myprofile/myuser' | 76 | get '/myprofile/myuser' |
77 | assert_response :success | 77 | assert_response :success |
78 | 78 |