summaryrefslogtreecommitdiffstats
path: root/test/functional/repositories_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-12 20:56:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-12 20:56:22 +0000
commit76ed8cc200c5a0ddcb5484efd53f31f577c9e2f6 (patch)
treefc8e235cd67a8718a2e8fd716ebc00c0e4e15e29 /test/functional/repositories_controller_test.rb
parent3539bef96b06d12248ef9d164be1e0fe0b536181 (diff)
downloadredmine-76ed8cc200c5a0ddcb5484efd53f31f577c9e2f6.tar.gz
redmine-76ed8cc200c5a0ddcb5484efd53f31f577c9e2f6.zip
Added some functional tests (projects and repositories).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@981 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_controller_test.rb')
-rw-r--r--test/functional/repositories_controller_test.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/functional/repositories_controller_test.rb b/test/functional/repositories_controller_test.rb
index d5ccc660d..2f0459505 100644
--- a/test/functional/repositories_controller_test.rb
+++ b/test/functional/repositories_controller_test.rb
@@ -31,6 +31,13 @@ class RepositoriesControllerTest < Test::Unit::TestCase
User.current = nil
end
+ def test_revisions
+ get :revisions, :id => 1
+ assert_response :success
+ assert_template 'revisions'
+ assert_not_nil assigns(:changesets)
+ end
+
def test_revision_with_before_nil_and_afer_normal
get :revision, {:id => 1, :rev => 1}
assert_response :success
@@ -43,4 +50,15 @@ class RepositoriesControllerTest < Test::Unit::TestCase
}
end
+ def test_graph_commits_per_month
+ get :graph, :id => 1, :graph => 'commits_per_month'
+ assert_response :success
+ assert_equal 'image/svg+xml', @response.content_type
+ end
+
+ def test_graph_commits_per_author
+ get :graph, :id => 1, :graph => 'commits_per_author'
+ assert_response :success
+ assert_equal 'image/svg+xml', @response.content_type
+ end
end