Project

General

Profile

Feature #15212 » diff.patch

Mizuki ISHIKAWA, 2020-04-22 06:52

View differences:

app/views/common/feed.atom.builder
@items.each do |item|
xml.entry do
url = url_for(item.event_url(:only_path => false))
if @project
if @project && @project == item.project
xml.title truncate_single_line_raw(item.event_title, 100)
else
xml.title truncate_single_line_raw("#{item.project} - #{item.event_title}", 100)
test/functional/activities_controller_test.rb
assert_select 'title', :text => "Redmine: #{User.find(2).name}"
end
def test_index_atom_feed_with_subprojects
get(
:index,
:params => {
:format => 'atom',
:id => 'ecookbook',
:with_subprojects => 1,
:show_issues => 1
}
)
assert_response :success
assert_select 'feed' do
# eCookbook
assert_select 'title', text: 'Bug #1: Cannot print recipes'
# eCookbook Subproject 1
assert_select 'title', text: 'eCookbook Subproject 1 - Bug #5 (New): Subproject issue'
end
end
def test_index_should_show_private_notes_with_permission_only
journal = Journal.create!(:journalized => Issue.find(2), :notes => 'Private notes', :private_notes => true)
@request.session[:user_id] = 2
(1-1/2)