api.start_date issue.start_date
api.due_date issue.due_date
api.done_ratio issue.done_ratio
+ api.is_private issue.is_private
api.estimated_hours issue.estimated_hours
render_api_custom_values issue.visible_custom_field_values, api
api.start_date @issue.start_date
api.due_date @issue.due_date
api.done_ratio @issue.done_ratio
+ api.is_private @issue.is_private
api.estimated_hours @issue.estimated_hours
api.spent_hours(@issue.spent_hours) if User.current.allowed_to?(:view_time_entries, @project)
end
end
+ def test_index_should_include_issue_attributes
+ get '/issues.xml'
+ assert_select 'issues>issue>is_private', :text => 'false'
+ end
+
def test_index_should_allow_timestamp_filtering
Issue.delete_all
Issue.generate!(:subject => '1').update_column(:updated_on, Time.parse("2014-01-02T10:25:00Z"))
end
end
+ def test_show_should_include_issue_attributes
+ get '/issues/1.xml'
+ assert_select 'issue>is_private', :text => 'false'
+ end
+
test "GET /issues/:id.xml?include=watchers should include watchers" do
Watcher.create!(:user_id => 3, :watchable => Issue.find(1))