Commit 3f3e701d authored by jplang's avatar jplang

Adds a test for #25526.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 9932d001
......@@ -336,6 +336,15 @@ class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base
assert_equal 1, json['issue']['children'].select {|child| child.key?('children')}.size
test "GET /issues/:id.json with no spent time should return floats" do
issue = Issue.generate!
get "/issues/#{}.json"
json = ActiveSupport::JSON.decode(response.body)
assert_kind_of Float, json['issue']['spent_hours']
assert_kind_of Float, json['issue']['total_spent_hours']
def test_show_should_include_issue_attributes
get '/issues/1.xml'
assert_select 'issue>is_private', :text => 'false'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment