Feature #2631 ยป 2631.patch
| app/views/news/show.html.erb | ||
|---|---|---|
|
<%= breadcrumb link_to(l(:label_news_plural), {:controller => 'news', :action => 'index', :project_id => @project}) %>
|
||
|
<div class="contextual">
|
||
|
<%= watcher_link(@news, User.current) %>
|
||
|
<%= link_to(l(:button_edit),
|
||
| test/functional/news_controller_test.rb | ||
|---|---|---|
|
def test_show
|
||
|
get(:show, :params => {:id => 1})
|
||
|
assert_response :success
|
||
|
assert_select 'p.breadcrumb a[href=?]', '/projects/ecookbook/news', :text => 'News'
|
||
|
assert_select 'h2', :text => 'eCookbook first release !'
|
||
|
end
|
||