Commit 937b2caf67c3ac18f31b88b8df58c1ffda77c307
1 parent
2f6997ed
Exists in
master
and in
29 other branches
Fixing integration test
(ActionItem1465)
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
test/integration/manage_documents_test.rb
... | ... | @@ -5,10 +5,10 @@ class ManageDocumentsTest < ActionController::IntegrationTest |
5 | 5 | all_fixtures |
6 | 6 | |
7 | 7 | def test_creation_of_a_new_article |
8 | - create_user('myuser') | |
8 | + user = create_user('myuser') | |
9 | 9 | |
10 | 10 | login('myuser', 'myuser') |
11 | - assert_tag :tag => 'a', :attributes => { :href => '/myprofile/{login}' } | |
11 | + assert_tag :tag => 'a', :attributes => { :href => "#{user.environment.top_url}/myprofile\/{login}" } | |
12 | 12 | |
13 | 13 | get '/myprofile/myuser' |
14 | 14 | assert_response :success |
... | ... | @@ -38,7 +38,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest |
38 | 38 | article.save! |
39 | 39 | |
40 | 40 | login('myuser', 'myuser') |
41 | - assert_tag :tag => 'a', :attributes => { :href => '/myprofile/{login}' } | |
41 | + assert_tag :tag => 'a', :attributes => { :href => "#{profile.environment.top_url}\/myprofile\/{login}" } | |
42 | 42 | |
43 | 43 | get '/myprofile/myuser' |
44 | 44 | assert_response :success |
... | ... | @@ -72,7 +72,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest |
72 | 72 | |
73 | 73 | login('myuser', 'myuser') |
74 | 74 | |
75 | - assert_tag :tag => 'a', :attributes => { :href => '/myprofile/{login}' } | |
75 | + assert_tag :tag => 'a', :attributes => { :href => "#{profile.environment.top_url}\/myprofile\/{login}" } | |
76 | 76 | get '/myprofile/myuser' |
77 | 77 | assert_response :success |
78 | 78 | ... | ... |