Fixed error on commits per month graph (#10806).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9610 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -201,6 +201,11 @@ class RepositoriesControllerTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
def test_graph_commits_per_month
|
||||
# Make sure there's some data to display
|
||||
latest = Project.find(1).repository.changesets.maximum(:commit_date)
|
||||
assert_not_nil latest
|
||||
Date.stubs(:today).returns(latest.to_date + 10)
|
||||
|
||||
get :graph, :id => 1, :graph => 'commits_per_month'
|
||||
assert_response :success
|
||||
assert_equal 'image/svg+xml', @response.content_type
|
||||
|
||||
Reference in New Issue
Block a user