From 76ed8cc200c5a0ddcb5484efd53f31f577c9e2f6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 12 Dec 2007 20:56:22 +0000 Subject: Added some functional tests (projects and repositories). git-svn-id: http://redmine.rubyforge.org/svn/trunk@981 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/repositories_controller_test.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test/functional/repositories_controller_test.rb') 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 -- cgit v1.2.3