mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 01:06:00 +01:00
Merged r16492 (#25526).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@16495 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -323,6 +323,15 @@ class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base
|
||||
assert_equal 1, json['issue']['children'].select {|child| child.key?('children')}.size
|
||||
end
|
||||
|
||||
test "GET /issues/:id.json with no spent time should return floats" do
|
||||
issue = Issue.generate!
|
||||
get "/issues/#{issue.id}.json"
|
||||
|
||||
json = ActiveSupport::JSON.decode(response.body)
|
||||
assert_kind_of Float, json['issue']['spent_hours']
|
||||
assert_kind_of Float, json['issue']['total_spent_hours']
|
||||
end
|
||||
|
||||
def test_show_should_include_issue_attributes
|
||||
get '/issues/1.xml'
|
||||
assert_select 'issue>is_private', :text => 'false'
|
||||
|
||||
Reference in New Issue
Block a user