Commit b48efc03 authored by jplang's avatar jplang

Adds our own class for controller tests.

git-svn-id: https://svn.redmine.org/redmine/trunk@15661 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 660d611d
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class AccountControllerOpenidTest < ActionController::TestCase
class AccountControllerOpenidTest < Redmine::ControllerTest
tests AccountController
fixtures :users, :roles
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class AccountControllerTest < ActionController::TestCase
class AccountControllerTest < Redmine::ControllerTest
fixtures :users, :email_addresses, :roles
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class ActivitiesControllerTest < ActionController::TestCase
class ActivitiesControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class AdminControllerTest < ActionController::TestCase
class AdminControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles
def setup
......
......@@ -19,7 +19,7 @@
require File.expand_path('../../test_helper', __FILE__)
class AttachmentsControllerTest < ActionController::TestCase
class AttachmentsControllerTest < Redmine::ControllerTest
fixtures :users, :projects, :roles, :members, :member_roles,
:enabled_modules, :issues, :trackers, :attachments,
:versions, :wiki_pages, :wikis, :documents
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class AuthSourcesControllerTest < ActionController::TestCase
class AuthSourcesControllerTest < Redmine::ControllerTest
fixtures :users, :auth_sources
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class AutoCompletesControllerTest < ActionController::TestCase
class AutoCompletesControllerTest < Redmine::ControllerTest
fixtures :projects, :issues, :issue_statuses,
:enumerations, :users, :issue_categories,
:trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class BoardsControllerTest < ActionController::TestCase
class BoardsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles, :boards, :messages, :enabled_modules
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class CalendarsControllerTest < ActionController::TestCase
class CalendarsControllerTest < Redmine::ControllerTest
fixtures :projects,
:trackers,
:projects_trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class CommentsControllerTest < ActionController::TestCase
class CommentsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules, :news, :comments
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class ContextMenusControllerTest < ActionController::TestCase
class ContextMenusControllerTest < Redmine::ControllerTest
fixtures :projects,
:trackers,
:projects_trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class CustomFieldEnumerationsControllerTest < ActionController::TestCase
class CustomFieldEnumerationsControllerTest < Redmine::ControllerTest
fixtures :users, :email_addresses
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class CustomFieldsControllerTest < ActionController::TestCase
class CustomFieldsControllerTest < Redmine::ControllerTest
fixtures :custom_fields, :custom_values,
:custom_fields_projects, :custom_fields_trackers,
:roles, :users,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class DocumentsControllerTest < ActionController::TestCase
class DocumentsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
:enabled_modules, :documents, :enumerations,
:groups_users, :attachments
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class EmailAddressesControllerTest < ActionController::TestCase
class EmailAddressesControllerTest < Redmine::ControllerTest
fixtures :users, :email_addresses
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class EnumerationsControllerTest < ActionController::TestCase
class EnumerationsControllerTest < Redmine::ControllerTest
fixtures :enumerations, :issues, :users
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class FilesControllerTest < ActionController::TestCase
class FilesControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users,
:email_addresses,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class GanttsControllerTest < ActionController::TestCase
class GanttsControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class GroupsControllerTest < ActionController::TestCase
class GroupsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles, :groups_users
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class ImportsControllerTest < ActionController::TestCase
class ImportsControllerTest < Redmine::ControllerTest
fixtures :projects, :enabled_modules,
:users, :email_addresses,
:roles, :members, :member_roles,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class IssueCategoriesControllerTest < ActionController::TestCase
class IssueCategoriesControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles, :enabled_modules, :issue_categories,
:issues
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class IssueRelationsControllerTest < ActionController::TestCase
class IssueRelationsControllerTest < Redmine::ControllerTest
fixtures :projects,
:users,
:roles,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class IssueStatusesControllerTest < ActionController::TestCase
class IssueStatusesControllerTest < Redmine::ControllerTest
fixtures :issue_statuses, :issues, :users, :trackers
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class IssuesControllerTest < ActionController::TestCase
class IssuesControllerTest < Redmine::ControllerTest
fixtures :projects,
:users, :email_addresses, :user_preferences,
:roles,
......
......@@ -18,7 +18,7 @@
require File.expand_path('../../test_helper', __FILE__)
require 'issues_controller'
class IssuesControllerTransactionTest < ActionController::TestCase
class IssuesControllerTransactionTest < Redmine::ControllerTest
tests IssuesController
fixtures :projects,
:users,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class IssuesCustomFieldsVisibilityTest < ActionController::TestCase
class IssuesCustomFieldsVisibilityTest < Redmine::ControllerTest
tests IssuesController
fixtures :projects,
:users, :email_addresses, :user_preferences,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class JournalsControllerTest < ActionController::TestCase
class JournalsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles, :issues, :journals, :journal_details, :enabled_modules,
:trackers, :issue_statuses, :enumerations, :custom_fields, :custom_values, :custom_fields_projects, :projects_trackers
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class MailHandlerControllerTest < ActionController::TestCase
class MailHandlerControllerTest < Redmine::ControllerTest
fixtures :users, :email_addresses, :projects, :enabled_modules, :roles, :members, :member_roles, :issues, :issue_statuses,
:trackers, :projects_trackers, :enumerations
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class MembersControllerTest < ActionController::TestCase
class MembersControllerTest < Redmine::ControllerTest
fixtures :projects, :members, :member_roles, :roles, :users
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class MessagesControllerTest < ActionController::TestCase
class MessagesControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :user_preferences, :members, :member_roles, :roles, :boards, :messages, :enabled_modules
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class MyControllerTest < ActionController::TestCase
class MyControllerTest < Redmine::ControllerTest
fixtures :users, :email_addresses, :user_preferences, :roles, :projects, :members, :member_roles,
:issues, :issue_statuses, :trackers, :enumerations, :custom_fields, :auth_sources
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class NewsControllerTest < ActionController::TestCase
class NewsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
:enabled_modules, :news, :comments,
:attachments
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class PreviewsControllerTest < ActionController::TestCase
class PreviewsControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class PrincipalMembershipsControllerTest < ActionController::TestCase
class PrincipalMembershipsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles, :groups_users
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class ProjectEnumerationsControllerTest < ActionController::TestCase
class ProjectEnumerationsControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class ProjectsControllerTest < ActionController::TestCase
class ProjectsControllerTest < Redmine::ControllerTest
fixtures :projects, :versions, :users, :email_addresses, :roles, :members,
:member_roles, :issues, :journals, :journal_details,
:trackers, :projects_trackers, :issue_statuses,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class QueriesControllerTest < ActionController::TestCase
class QueriesControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles, :trackers, :issue_statuses, :issue_categories, :enumerations, :issues, :custom_fields, :custom_values, :queries, :enabled_modules
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class ReportsControllerTest < ActionController::TestCase
class ReportsControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class RepositoriesBazaarControllerTest < ActionController::TestCase
class RepositoriesBazaarControllerTest < Redmine::ControllerTest
tests RepositoriesController
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class RepositoriesControllerTest < ActionController::TestCase
class RepositoriesControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules,
:repositories, :issues, :issue_statuses, :changesets, :changes,
:issue_categories, :enumerations, :custom_fields, :custom_values, :trackers
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class RepositoriesCvsControllerTest < ActionController::TestCase
class RepositoriesCvsControllerTest < Redmine::ControllerTest
tests RepositoriesController
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class RepositoriesDarcsControllerTest < ActionController::TestCase
class RepositoriesDarcsControllerTest < Redmine::ControllerTest
tests RepositoriesController
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class RepositoriesFilesystemControllerTest < ActionController::TestCase
class RepositoriesFilesystemControllerTest < Redmine::ControllerTest
tests RepositoriesController
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class RepositoriesGitControllerTest < ActionController::TestCase
class RepositoriesGitControllerTest < Redmine::ControllerTest
tests RepositoriesController
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class RepositoriesMercurialControllerTest < ActionController::TestCase
class RepositoriesMercurialControllerTest < Redmine::ControllerTest
tests RepositoriesController
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class RepositoriesSubversionControllerTest < ActionController::TestCase
class RepositoriesSubversionControllerTest < Redmine::ControllerTest
tests RepositoriesController
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class RolesControllerTest < ActionController::TestCase
class RolesControllerTest < Redmine::ControllerTest
fixtures :roles, :users, :members, :member_roles, :workflows, :trackers
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class SearchControllerTest < ActionController::TestCase
class SearchControllerTest < Redmine::ControllerTest
fixtures :projects, :projects_trackers,
:enabled_modules, :roles, :users, :members, :member_roles,
:issues, :trackers, :issue_statuses, :enumerations,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class SearchCustomFieldsVisibilityTest < ActionController::TestCase
class SearchCustomFieldsVisibilityTest < Redmine::ControllerTest
tests SearchController
fixtures :projects,
:users,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class SessionsControllerTest < ActionController::TestCase
class SessionsControllerTest < Redmine::ControllerTest
include Redmine::I18n
tests WelcomeController
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class SettingsControllerTest < ActionController::TestCase
class SettingsControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
:users
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class SysControllerTest < ActionController::TestCase
class SysControllerTest < Redmine::ControllerTest
fixtures :projects, :repositories, :enabled_modules
def setup
......
......@@ -18,7 +18,7 @@
require File.expand_path('../../test_helper', __FILE__)
class TimeEntryReportsControllerTest < ActionController::TestCase
class TimeEntryReportsControllerTest < Redmine::ControllerTest
tests TimelogController
fixtures :projects, :enabled_modules, :roles, :members, :member_roles,
......
......@@ -18,7 +18,7 @@
require File.expand_path('../../test_helper', __FILE__)
class TimelogControllerTest < ActionController::TestCase
class TimelogControllerTest < Redmine::ControllerTest
fixtures :projects, :enabled_modules, :roles, :members,
:member_roles, :issues, :time_entries, :users,
:trackers, :enumerations, :issue_statuses,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class TimelogCustomFieldsVisibilityTest < ActionController::TestCase
class TimelogCustomFieldsVisibilityTest < Redmine::ControllerTest
tests TimelogController
fixtures :projects,
:users,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class TrackersControllerTest < ActionController::TestCase
class TrackersControllerTest < Redmine::ControllerTest
fixtures :trackers, :projects, :projects_trackers, :users, :issues, :custom_fields, :issue_statuses
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class UsersControllerTest < ActionController::TestCase
class UsersControllerTest < Redmine::ControllerTest
include Redmine::I18n
fixtures :users, :email_addresses, :projects, :members, :member_roles, :roles,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class VersionsControllerTest < ActionController::TestCase
class VersionsControllerTest < Redmine::ControllerTest
fixtures :projects, :versions, :issues, :users, :roles, :members,
:member_roles, :enabled_modules, :issue_statuses,
:issue_categories, :enumerations
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class WatchersControllerTest < ActionController::TestCase
class WatchersControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules,
:issues, :trackers, :projects_trackers, :issue_statuses, :enumerations, :watchers
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class WelcomeControllerTest < ActionController::TestCase
class WelcomeControllerTest < Redmine::ControllerTest
fixtures :projects, :news, :users, :members
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class WikiControllerTest < ActionController::TestCase
class WikiControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
:enabled_modules, :wikis, :wiki_pages, :wiki_contents,
:wiki_content_versions, :attachments,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class WikisControllerTest < ActionController::TestCase
class WikisControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules, :wikis
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../test_helper', __FILE__)
class WorkflowsControllerTest < ActionController::TestCase
class WorkflowsControllerTest < Redmine::ControllerTest
fixtures :roles, :trackers, :workflows, :users, :issue_statuses
def setup
......
......@@ -277,6 +277,9 @@ module Redmine
end
end
class ControllerTest < ActionController::TestCase
end
class IntegrationTest < ActionDispatch::IntegrationTest
def log_user(login, password)
User.anonymous
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment