Commit ee6aa6721f2f7f17cc71f8671ae8cca5c060bdb9

Authored by AntonioTerceiro
1 parent 8416b4f2

ActionItem70: properly linking to the CMS



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@511 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/views/account/index.rhtml
@@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
16 </p> 16 </p>
17 17
18 <p> 18 <p>
19 -<%= link_to_homepage(_('Manage content.')) %> 19 +<%= link_to_myprofile(_('Manage content.'), :controller => 'cms') %>
20 <%= _('Manage your content.') %> 20 <%= _('Manage your content.') %>
21 </p> 21 </p>
22 22
test/integration/manage_documents_test.rb
@@ -9,6 +9,10 @@ class ManageDocumentsTest &lt; ActionController::IntegrationTest @@ -9,6 +9,10 @@ class ManageDocumentsTest &lt; ActionController::IntegrationTest
9 9
10 login('ze', 'test') 10 login('ze', 'test')
11 11
  12 + assert_tag :tag => 'a', :attributes => { :href => '/account' }
  13 + get '/account'
  14 + assert_response :success
  15 +
12 assert_tag :tag => 'a', :attributes => { :href => '/myprofile/ze/cms' } 16 assert_tag :tag => 'a', :attributes => { :href => '/myprofile/ze/cms' }
13 17
14 get '/myprofile/ze/cms' 18 get '/myprofile/ze/cms'