- '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/version_test.rb'
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
)
assert_equal 'value1', version.custom_field_value(cf1)
assert_nil version.custom_field_value(cf2)
- version.send :safe_attributes=, {'custom_fields' => [
- {'id' => cf1.id.to_s, 'value' => 'valuea'},
- {'id' => cf2.id.to_s, 'value' => 'valueb'}
- ]}, user
+ version.send(
+ :safe_attributes=,
+ {'custom_fields' =>
+ [
+ {'id' => cf1.id.to_s, 'value' => 'valuea'},
+ {'id' => cf2.id.to_s, 'value' => 'valueb'}
+ ]
+ },
+ user
+ )
assert_equal 'valuea', version.custom_field_value(cf1)
assert_nil version.custom_field_value(cf2)
end