diff options
-rw-r--r-- | test/unit/version_test.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/unit/version_test.rb b/test/unit/version_test.rb index 4806a4668..4d90839a6 100644 --- a/test/unit/version_test.rb +++ b/test/unit/version_test.rb @@ -309,9 +309,14 @@ class VersionTest < ActiveSupport::TestCase user = User.find(2) version = Version.new(:project_id => 1, :name => 'v4') - version.send :safe_attributes=, {'custom_field_values' => { - cf1.id.to_s => 'value1', cf2.id.to_s => 'value2' - }}, user + version.send( + :safe_attributes=, + { + 'custom_field_values' => + {cf1.id.to_s => 'value1', cf2.id.to_s => 'value2'} + }, + user + ) assert_equal 'value1', version.custom_field_value(cf1) assert_nil version.custom_field_value(cf2) version.send :safe_attributes=, {'custom_fields' => [ |