summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-05 11:05:50 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-05 11:05:50 +0000
commit8ae81b98d53221169cf550d19a30b5c3cf57f901 (patch)
tree15fc03f0ea37cf556c8f871b446a75e89323e89f /test/functional
parentec9f9c26a8079610b43c64f4ea8ba4027566b44e (diff)
downloadredmine-8ae81b98d53221169cf550d19a30b5c3cf57f901.tar.gz
redmine-8ae81b98d53221169cf550d19a30b5c3cf57f901.zip
Fix loading of last visible journal (#1474, #6375).
git-svn-id: http://svn.redmine.org/redmine/trunk@16376 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/issues_controller_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 63ac34fdd..f120baba2 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -986,6 +986,7 @@ class IssuesControllerTest < Redmine::ControllerTest
end
def test_index_with_last_notes_column_should_display_private_notes_with_permission_only
+ journal = Journal.create!(:journalized => Issue.find(2), :notes => 'Public notes', :user_id => 1)
journal = Journal.create!(:journalized => Issue.find(2), :notes => 'Privates notes', :private_notes => true, :user_id => 1)
@request.session[:user_id] = 2
@@ -997,7 +998,7 @@ class IssuesControllerTest < Redmine::ControllerTest
get :index, :set_filter => 1, :c => %w(subject last_notes)
assert_response :success
- assert_select 'td.last_notes[colspan="3"]', :text => 'A comment with inline image: and a reference to #1 and r2.'
+ assert_select 'td.last_notes[colspan="3"]', :text => 'Public notes'
end
def test_index_with_description_and_last_notes_columns_should_display_column_name