mirror of
https://github.com/redmine/redmine.git
synced 2025-11-11 15:56:03 +01:00
Use assert_nil instead of assert_equal.
git-svn-id: http://svn.redmine.org/redmine/trunk@16060 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user