diff --git a/test/integration/manage_documents_test.rb b/test/integration/manage_documents_test.rb index 0ebc70f..f2575b3 100644 --- a/test/integration/manage_documents_test.rb +++ b/test/integration/manage_documents_test.rb @@ -5,10 +5,10 @@ class ManageDocumentsTest < ActionController::IntegrationTest all_fixtures def test_creation_of_a_new_article - create_user('myuser') + user = create_user('myuser') login('myuser', 'myuser') - assert_tag :tag => 'a', :attributes => { :href => '/myprofile/{login}' } + assert_tag :tag => 'a', :attributes => { :href => "#{user.environment.top_url}/myprofile\/{login}" } get '/myprofile/myuser' assert_response :success @@ -38,7 +38,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest article.save! login('myuser', 'myuser') - assert_tag :tag => 'a', :attributes => { :href => '/myprofile/{login}' } + assert_tag :tag => 'a', :attributes => { :href => "#{profile.environment.top_url}\/myprofile\/{login}" } get '/myprofile/myuser' assert_response :success @@ -72,7 +72,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest login('myuser', 'myuser') - assert_tag :tag => 'a', :attributes => { :href => '/myprofile/{login}' } + assert_tag :tag => 'a', :attributes => { :href => "#{profile.environment.top_url}\/myprofile\/{login}" } get '/myprofile/myuser' assert_response :success -- libgit2 0.21.2