summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--test/unit/project_test.rb15
2 files changed, 11 insertions, 5 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index ee9d47c54..92e4dcb5e 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -158,7 +158,6 @@ Layout/IndentFirstArrayElement:
- 'test/functional/repositories_mercurial_controller_test.rb'
- 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
- - 'test/unit/project_test.rb'
- 'test/unit/version_test.rb'
# Cop supports --auto-correct.
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb
index de4b632e8..1b46f48d8 100644
--- a/test/unit/project_test.rb
+++ b/test/unit/project_test.rb
@@ -1061,10 +1061,17 @@ class ProjectTest < ActiveSupport::TestCase
assert_equal 'value1', project.custom_field_value(cf1)
assert_nil project.custom_field_value(cf2)
- project.send :safe_attributes=, {'custom_fields' => [
- {'id' => cf1.id.to_s, 'value' => 'valuea'},
- {'id' => cf2.id.to_s, 'value' => 'valueb'}
- ]}, user
+ project.send(
+ :safe_attributes=,
+ {
+ 'custom_fields' =>
+ [
+ {'id' => cf1.id.to_s, 'value' => 'valuea'},
+ {'id' => cf2.id.to_s, 'value' => 'valueb'}
+ ]
+ },
+ user
+ )
assert_equal 'valuea', project.custom_field_value(cf1)
assert_nil project.custom_field_value(cf2)
end