diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-11 15:26:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-11 15:26:41 +0000 |
commit | bf5dade8df89bd4e519b59846a9007bd0a5911ca (patch) | |
tree | 39f4320fdab714739002a7ea97205349a7a558ac /test/unit/custom_field_user_format_test.rb | |
parent | e937cb533efaf6f56db4fd406612e09133bed11b (diff) | |
download | redmine-bf5dade8df89bd4e519b59846a9007bd0a5911ca.tar.gz redmine-bf5dade8df89bd4e519b59846a9007bd0a5911ca.zip |
Use assert_nil instead of assert_equal.
git-svn-id: http://svn.redmine.org/redmine/trunk@16060 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/custom_field_user_format_test.rb')
-rw-r--r-- | test/unit/custom_field_user_format_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/custom_field_user_format_test.rb b/test/unit/custom_field_user_format_test.rb index f5d4e66fe..d9a1cfb2c 100644 --- a/test/unit/custom_field_user_format_test.rb +++ b/test/unit/custom_field_user_format_test.rb @@ -62,8 +62,8 @@ class CustomFieldUserFormatTest < ActiveSupport::TestCase end def test_cast_blank_value - assert_equal nil, @field.cast_value(nil) - assert_equal nil, @field.cast_value("") + assert_nil @field.cast_value(nil) + assert_nil @field.cast_value("") end def test_cast_valid_value @@ -73,6 +73,6 @@ class CustomFieldUserFormatTest < ActiveSupport::TestCase end def test_cast_invalid_value - assert_equal nil, @field.cast_value("187") + assert_nil @field.cast_value("187") end end |