summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test
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/integration/api_test
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/integration/api_test')
-rw-r--r--test/integration/api_test/issues_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb
index d4040201e..94f42287a 100644
--- a/test/integration/api_test/issues_test.rb
+++ b/test/integration/api_test/issues_test.rb
@@ -414,8 +414,8 @@ class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base
json = ActiveSupport::JSON.decode(response.body)
assert_equal parent.estimated_hours, json['issue']['estimated_hours']
assert_equal (parent.estimated_hours.to_f + 3.0), json['issue']['total_estimated_hours']
- assert_equal nil, json['issue']['spent_hours']
- assert_equal nil, json['issue']['total_spent_hours']
+ assert_nil json['issue']['spent_hours']
+ assert_nil json['issue']['total_spent_hours']
end
test "POST /issues.xml should create an issue with the attributes" do