summaryrefslogtreecommitdiffstats
path: root/test/functional/issue_statuses_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-03 22:23:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-03 22:23:23 +0000
commit4cc4e8bfd3a87ec4434d13e5091c0a7dd4e69233 (patch)
treef86d4fffe8d7427ba0cfb47e2e70d361aa945121 /test/functional/issue_statuses_controller_test.rb
parent349049a539601b0095783befdef4ae1106d85c98 (diff)
downloadredmine-4cc4e8bfd3a87ec4434d13e5091c0a7dd4e69233.tar.gz
redmine-4cc4e8bfd3a87ec4434d13e5091c0a7dd4e69233.zip
Functional tests cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10936 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issue_statuses_controller_test.rb')
-rw-r--r--test/functional/issue_statuses_controller_test.rb25
1 files changed, 17 insertions, 8 deletions
diff --git a/test/functional/issue_statuses_controller_test.rb b/test/functional/issue_statuses_controller_test.rb
index 1662413e0..0194be22e 100644
--- a/test/functional/issue_statuses_controller_test.rb
+++ b/test/functional/issue_statuses_controller_test.rb
@@ -1,17 +1,26 @@
-require File.expand_path('../../test_helper', __FILE__)
-require 'issue_statuses_controller'
-
-# Re-raise errors caught by the controller.
-class IssueStatusesController; def rescue_action(e) raise e end; end
+# Redmine - project management software
+# Copyright (C) 2006-2012 Jean-Philippe Lang
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+require File.expand_path('../../test_helper', __FILE__)
class IssueStatusesControllerTest < ActionController::TestCase
fixtures :issue_statuses, :issues, :users
def setup
- @controller = IssueStatusesController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
User.current = nil
@request.session[:user_id] = 1 # admin
end