From e927bd9dc92908de72c9b0a865303cf8c15ea6ec Mon Sep 17 00:00:00 2001 From: Daniela Feitosa Date: Mon, 2 Jun 2014 02:51:33 +0000 Subject: [PATCH] Fixed broken tests --- test/functional/profile_controller_test.rb | 2 +- test/integration/manage_documents_test.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functional/profile_controller_test.rb b/test/functional/profile_controller_test.rb index 74f7baa..e7647d7 100644 --- a/test/functional/profile_controller_test.rb +++ b/test/functional/profile_controller_test.rb @@ -154,7 +154,7 @@ class ProfileControllerTest < ActionController::TestCase community = Community.create!(:name => 'my test community') community.add_admin(@profile) get :index, :profile => community.identifier - assert_tag :tag => 'a', :attributes => { :href => /\/myprofile\/\{login\}/ }, :content => 'Control panel' + assert_tag :tag => 'a', :attributes => { :href => /\/myprofile\/my-test-community/ }, :content => 'Control panel' end should 'show create community in own profile' do diff --git a/test/integration/manage_documents_test.rb b/test/integration/manage_documents_test.rb index 5f1b94d..e14de90 100644 --- a/test/integration/manage_documents_test.rb +++ b/test/integration/manage_documents_test.rb @@ -9,7 +9,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest user.activate login('myuser', 'myuser') - assert_tag :tag => 'a', :attributes => { :href => "#{user.environment.top_url}/myprofile\/{login}" } + assert_tag :tag => 'a', :attributes => { :href => "/myprofile/#{user.login}" } get '/myprofile/myuser' assert_response :success @@ -40,7 +40,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest article.save! login('myuser', 'myuser') - assert_tag :tag => 'a', :attributes => { :href => "#{profile.environment.top_url}\/myprofile\/{login}" } + assert_tag :tag => 'a', :attributes => { :href => "/myprofile/#{profile.identifier}" } get '/myprofile/myuser' assert_response :success @@ -75,7 +75,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest login('myuser', 'myuser') - assert_tag :tag => 'a', :attributes => { :href => "#{profile.environment.top_url}\/myprofile\/{login}" } + assert_tag :tag => 'a', :attributes => { :href => "/myprofile/#{profile.identifier}" } get '/myprofile/myuser' assert_response :success -- libgit2 0.21.2