Commit 937b2caf67c3ac18f31b88b8df58c1ffda77c307
1 parent
2f6997ed
Exists in
master
and in
28 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,10 +5,10 @@ class ManageDocumentsTest < ActionController::IntegrationTest | ||
5 | all_fixtures | 5 | all_fixtures |
6 | 6 | ||
7 | def test_creation_of_a_new_article | 7 | def test_creation_of_a_new_article |
8 | - create_user('myuser') | 8 | + user = create_user('myuser') |
9 | 9 | ||
10 | login('myuser', 'myuser') | 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 | 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/{login}' } | 41 | + assert_tag :tag => 'a', :attributes => { :href => "#{profile.environment.top_url}\/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/{login}' } | 75 | + assert_tag :tag => 'a', :attributes => { :href => "#{profile.environment.top_url}\/myprofile\/{login}" } |
76 | get '/myprofile/myuser' | 76 | get '/myprofile/myuser' |
77 | assert_response :success | 77 | assert_response :success |
78 | 78 |