mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
cleanup: rubocop: fix Layout/IndentFirstArrayElement in test/unit/version_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19244 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -158,7 +158,6 @@ Layout/IndentFirstArrayElement:
|
|||||||
- 'test/functional/repositories_mercurial_controller_test.rb'
|
- 'test/functional/repositories_mercurial_controller_test.rb'
|
||||||
- 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
|
- 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
|
||||||
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
|
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
|
||||||
- 'test/unit/version_test.rb'
|
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||||
|
|||||||
@@ -319,10 +319,16 @@ class VersionTest < ActiveSupport::TestCase
|
|||||||
)
|
)
|
||||||
assert_equal 'value1', version.custom_field_value(cf1)
|
assert_equal 'value1', version.custom_field_value(cf1)
|
||||||
assert_nil version.custom_field_value(cf2)
|
assert_nil version.custom_field_value(cf2)
|
||||||
version.send :safe_attributes=, {'custom_fields' => [
|
version.send(
|
||||||
{'id' => cf1.id.to_s, 'value' => 'valuea'},
|
:safe_attributes=,
|
||||||
{'id' => cf2.id.to_s, 'value' => 'valueb'}
|
{'custom_fields' =>
|
||||||
]}, user
|
[
|
||||||
|
{'id' => cf1.id.to_s, 'value' => 'valuea'},
|
||||||
|
{'id' => cf2.id.to_s, 'value' => 'valueb'}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
user
|
||||||
|
)
|
||||||
assert_equal 'valuea', version.custom_field_value(cf1)
|
assert_equal 'valuea', version.custom_field_value(cf1)
|
||||||
assert_nil version.custom_field_value(cf2)
|
assert_nil version.custom_field_value(cf2)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user