summaryrefslogtreecommitdiffstats
path: root/test/unit/custom_field_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-12-11 15:26:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-12-11 15:26:41 +0000
commitbf5dade8df89bd4e519b59846a9007bd0a5911ca (patch)
tree39f4320fdab714739002a7ea97205349a7a558ac /test/unit/custom_field_test.rb
parente937cb533efaf6f56db4fd406612e09133bed11b (diff)
downloadredmine-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_test.rb')
-rw-r--r--test/unit/custom_field_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/custom_field_test.rb b/test/unit/custom_field_test.rb
index c805e170e..461af85e4 100644
--- a/test/unit/custom_field_test.rb
+++ b/test/unit/custom_field_test.rb
@@ -321,8 +321,8 @@ class CustomFieldTest < ActiveSupport::TestCase
def test_float_cast_blank_value_should_return_nil
field = CustomField.new(:field_format => 'float')
- 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_float_cast_valid_value_should_return_float