Project

General

Profile

Feature #2631 ยป 2631.patch

Go MAEDA, 2023-05-06 01:27

View differences:

app/views/news/show.html.erb
1
<%= breadcrumb link_to(l(:label_news_plural), {:controller => 'news', :action => 'index', :project_id => @project}) %>
1 2
<div class="contextual">
2 3
<%= watcher_link(@news, User.current) %>
3 4
<%= link_to(l(:button_edit),
test/functional/news_controller_test.rb
78 78
  def test_show
79 79
    get(:show, :params => {:id => 1})
80 80
    assert_response :success
81
    assert_select 'p.breadcrumb a[href=?]', '/projects/ecookbook/news', :text => 'News'
81 82
    assert_select 'h2', :text => 'eCookbook first release !'
82 83
  end
83 84

  
    (1-1/1)