summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-07-17 04:40:01 +0000
committerGo MAEDA <maeda@farend.jp>2022-07-17 04:40:01 +0000
commitf52b3f90eb04bf312472660b35aae8edc15eb5d5 (patch)
tree06cc36220ef2dd0a5284ee28bd9a705a471e4305 /test/functional/issues_controller_test.rb
parent0afe0cf609b67f50e2758ec03f4dce0a322f91cb (diff)
downloadredmine-f52b3f90eb04bf312472660b35aae8edc15eb5d5.tar.gz
redmine-f52b3f90eb04bf312472660b35aae8edc15eb5d5.zip
Mark edited journal notes as "Edited" (#31505).
Patch by Marius BALTEANU. git-svn-id: https://svn.redmine.org/redmine/trunk@21713 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r--test/functional/issues_controller_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 60d1ff638..71dcfd6ad 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -2894,6 +2894,16 @@ class IssuesControllerTest < Redmine::ControllerTest
assert_select "#change-#{not_visible.id}", 0
end
+ def test_show_should_mark_notes_as_edited_only_for_edited_notes
+ get :show, :params => {:id => 1}
+ assert_response :success
+
+ journal = Journal.find(1)
+ journal_title = l(:label_time_by_author, :time => format_time(journal.updated_on), :author => journal.updated_by)
+ assert_select "#change-1 h4 span.update-info[title=?]", journal_title, :text => 'ยท Edited'
+ assert_select "#change-2 h4 span.update-info", 0
+ end
+
def test_show_atom
with_settings :text_formatting => 'textile' do
get(