Commit e927bd9dc92908de72c9b0a865303cf8c15ea6ec

Authored by Daniela Feitosa
1 parent 7c81695b

Fixed broken tests

test/functional/profile_controller_test.rb
... ... @@ -154,7 +154,7 @@ class ProfileControllerTest < ActionController::TestCase
154 154 community = Community.create!(:name => 'my test community')
155 155 community.add_admin(@profile)
156 156 get :index, :profile => community.identifier
157   - assert_tag :tag => 'a', :attributes => { :href => /\/myprofile\/\{login\}/ }, :content => 'Control panel'
  157 + assert_tag :tag => 'a', :attributes => { :href => /\/myprofile\/my-test-community/ }, :content => 'Control panel'
158 158 end
159 159  
160 160 should 'show create community in own profile' do
... ...
test/integration/manage_documents_test.rb
... ... @@ -9,7 +9,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest
9 9 user.activate
10 10  
11 11 login('myuser', 'myuser')
12   - assert_tag :tag => 'a', :attributes => { :href => "#{user.environment.top_url}/myprofile\/{login}" }
  12 + assert_tag :tag => 'a', :attributes => { :href => "/myprofile/#{user.login}" }
13 13  
14 14 get '/myprofile/myuser'
15 15 assert_response :success
... ... @@ -40,7 +40,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest
40 40 article.save!
41 41  
42 42 login('myuser', 'myuser')
43   - assert_tag :tag => 'a', :attributes => { :href => "#{profile.environment.top_url}\/myprofile\/{login}" }
  43 + assert_tag :tag => 'a', :attributes => { :href => "/myprofile/#{profile.identifier}" }
44 44  
45 45 get '/myprofile/myuser'
46 46 assert_response :success
... ... @@ -75,7 +75,7 @@ class ManageDocumentsTest < ActionController::IntegrationTest
75 75  
76 76 login('myuser', 'myuser')
77 77  
78   - assert_tag :tag => 'a', :attributes => { :href => "#{profile.environment.top_url}\/myprofile\/{login}" }
  78 + assert_tag :tag => 'a', :attributes => { :href => "/myprofile/#{profile.identifier}" }
79 79 get '/myprofile/myuser'
80 80 assert_response :success
81 81  
... ...