cleanup: rubocop: fix Layout/IndentFirstArrayElement in test/helpers/issues_helper_test.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@19241 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-11-24 05:44:40 +00:00
parent 5b0ada0f32
commit b4fc7d45a6
2 changed files with 14 additions and 9 deletions

View File

@@ -318,14 +318,20 @@ class IssuesHelperTest < Redmine::HelperTest
details << JournalDetail.new(:property => 'cf', :prop_key => field.id.to_s, :old_value => '2', :value => nil)
details << JournalDetail.new(:property => 'cf', :prop_key => field.id.to_s, :old_value => '3', :value => nil)
assert_equal [
"User Redmine Admin added",
"User deleted (Dave Lopper, John Smith)"
], details_to_strings(details, true)
assert_equal [
"<strong>User</strong> <i>Redmine Admin</i> added",
"<strong>User</strong> deleted (<del><i>Dave Lopper, John Smith</i></del>)"
], details_to_strings(details, false)
assert_equal(
[
"User Redmine Admin added",
"User deleted (Dave Lopper, John Smith)"
],
details_to_strings(details, true)
)
assert_equal(
[
"<strong>User</strong> <i>Redmine Admin</i> added",
"<strong>User</strong> deleted (<del><i>Dave Lopper, John Smith</i></del>)"
],
details_to_strings(details, false)
)
end
def test_find_name_by_reflection_should_return_nil_for_missing_record