mirror of
https://github.com/redmine/redmine.git
synced 2026-03-06 20:41:27 +01:00
Upgraded to Rails 2.3.4 (#3597)
* Ran the Rails upgrade
* Upgraded to Rails Engines 2.3.2
* Added a plugin to let Engines override application views.
* Converted tests to use the new classes:
** ActionController::TestCase for functional
** ActiveSupport::TestCase for units
* Converted ActiveRecord::Error message to a string.
* ActiveRecord grouping returns an ordered hash which doesn't have #sort!
* Updated the I18n storage_units format.
* Added some default initializers from a fresh rails app
* Changed the order of check_box_tags and hidden_field_tags. The hidden tag
needs to appear first in Rails 2.3, otherwise it will override any value in
the check_box_tag.
* Removed the custom handler for when the cookie store is tampered with.
Rails 2.3 removed the TamperedWithCookie exception and instead Rails will not
load the data from it when it's been tampered with (e.g. no user login).
* Fixed mail layouts, 2.3 has problems with implicit multipart emails that
use layouts. Also removed some custom Redmine mailer code.
* Fixed a bug that occurred in tests where the "required" span tag would be
added to the :field_status translation. This resulted in an email string of:
<li>Status<span class="required"> *</span><span class="required"> *</span>
Instead of:
<li>Status: New</li>
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2887 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -21,7 +21,7 @@ require 'account_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class AccountController; def rescue_action(e) raise e end; end
|
||||
|
||||
class AccountControllerTest < Test::Unit::TestCase
|
||||
class AccountControllerTest < ActionController::TestCase
|
||||
fixtures :users, :roles
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'admin_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class AdminController; def rescue_action(e) raise e end; end
|
||||
|
||||
class AdminControllerTest < Test::Unit::TestCase
|
||||
class AdminControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :roles
|
||||
|
||||
def setup
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
require 'application'
|
||||
require 'application_controller'
|
||||
|
||||
# Re-raise errors caught by the controller.
|
||||
class ApplicationController; def rescue_action(e) raise e end; end
|
||||
|
||||
class ApplicationControllerTest < Test::Unit::TestCase
|
||||
class ApplicationControllerTest < ActionController::TestCase
|
||||
include Redmine::I18n
|
||||
|
||||
def setup
|
||||
|
||||
@@ -22,7 +22,7 @@ require 'attachments_controller'
|
||||
class AttachmentsController; def rescue_action(e) raise e end; end
|
||||
|
||||
|
||||
class AttachmentsControllerTest < Test::Unit::TestCase
|
||||
class AttachmentsControllerTest < ActionController::TestCase
|
||||
fixtures :users, :projects, :roles, :members, :member_roles, :enabled_modules, :issues, :trackers, :attachments,
|
||||
:versions, :wiki_pages, :wikis, :documents
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'boards_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class BoardsController; def rescue_action(e) raise e end; end
|
||||
|
||||
class BoardsControllerTest < Test::Unit::TestCase
|
||||
class BoardsControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :members, :member_roles, :roles, :boards, :messages, :enabled_modules
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'custom_fields_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class CustomFieldsController; def rescue_action(e) raise e end; end
|
||||
|
||||
class CustomFieldsControllerTest < Test::Unit::TestCase
|
||||
class CustomFieldsControllerTest < ActionController::TestCase
|
||||
fixtures :custom_fields, :trackers, :users
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'documents_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class DocumentsController; def rescue_action(e) raise e end; end
|
||||
|
||||
class DocumentsControllerTest < Test::Unit::TestCase
|
||||
class DocumentsControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules, :documents, :enumerations
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'enumerations_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class EnumerationsController; def rescue_action(e) raise e end; end
|
||||
|
||||
class EnumerationsControllerTest < Test::Unit::TestCase
|
||||
class EnumerationsControllerTest < ActionController::TestCase
|
||||
fixtures :enumerations, :issues, :users
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'groups_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class GroupsController; def rescue_action(e) raise e end; end
|
||||
|
||||
class GroupsControllerTest < Test::Unit::TestCase
|
||||
class GroupsControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :members, :member_roles
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'issue_categories_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class IssueCategoriesController; def rescue_action(e) raise e end; end
|
||||
|
||||
class IssueCategoriesControllerTest < Test::Unit::TestCase
|
||||
class IssueCategoriesControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :members, :member_roles, :roles, :enabled_modules, :issue_categories
|
||||
|
||||
def setup
|
||||
|
||||
@@ -5,7 +5,7 @@ require 'issue_relations_controller'
|
||||
class IssueRelationsController; def rescue_action(e) raise e end; end
|
||||
|
||||
|
||||
class IssueRelationsControllerTest < Test::Unit::TestCase
|
||||
class IssueRelationsControllerTest < ActionController::TestCase
|
||||
fixtures :projects,
|
||||
:users,
|
||||
:roles,
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'issues_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class IssuesController; def rescue_action(e) raise e end; end
|
||||
|
||||
class IssuesControllerTest < Test::Unit::TestCase
|
||||
class IssuesControllerTest < ActionController::TestCase
|
||||
fixtures :projects,
|
||||
:users,
|
||||
:roles,
|
||||
@@ -42,7 +42,8 @@ class IssuesControllerTest < Test::Unit::TestCase
|
||||
:custom_fields_trackers,
|
||||
:time_entries,
|
||||
:journals,
|
||||
:journal_details
|
||||
:journal_details,
|
||||
:queries
|
||||
|
||||
def setup
|
||||
@controller = IssuesController.new
|
||||
@@ -452,14 +453,16 @@ class IssuesControllerTest < Test::Unit::TestCase
|
||||
|
||||
def test_post_new
|
||||
@request.session[:user_id] = 2
|
||||
post :new, :project_id => 1,
|
||||
:issue => {:tracker_id => 3,
|
||||
:subject => 'This is the test_new issue',
|
||||
:description => 'This is the description',
|
||||
:priority_id => 5,
|
||||
:estimated_hours => '',
|
||||
:custom_field_values => {'2' => 'Value for field 2'}}
|
||||
assert_redirected_to :action => 'show'
|
||||
assert_difference 'Issue.count' do
|
||||
post :new, :project_id => 1,
|
||||
:issue => {:tracker_id => 3,
|
||||
:subject => 'This is the test_new issue',
|
||||
:description => 'This is the description',
|
||||
:priority_id => 5,
|
||||
:estimated_hours => '',
|
||||
:custom_field_values => {'2' => 'Value for field 2'}}
|
||||
end
|
||||
assert_redirected_to :controller => 'issues', :action => 'show', :id => Issue.last.id
|
||||
|
||||
issue = Issue.find_by_subject('This is the test_new issue')
|
||||
assert_not_nil issue
|
||||
@@ -483,12 +486,14 @@ class IssuesControllerTest < Test::Unit::TestCase
|
||||
|
||||
def test_post_new_without_custom_fields_param
|
||||
@request.session[:user_id] = 2
|
||||
post :new, :project_id => 1,
|
||||
:issue => {:tracker_id => 1,
|
||||
:subject => 'This is the test_new issue',
|
||||
:description => 'This is the description',
|
||||
:priority_id => 5}
|
||||
assert_redirected_to :action => 'show'
|
||||
assert_difference 'Issue.count' do
|
||||
post :new, :project_id => 1,
|
||||
:issue => {:tracker_id => 1,
|
||||
:subject => 'This is the test_new issue',
|
||||
:description => 'This is the description',
|
||||
:priority_id => 5}
|
||||
end
|
||||
assert_redirected_to :controller => 'issues', :action => 'show', :id => Issue.last.id
|
||||
end
|
||||
|
||||
def test_post_new_with_required_custom_field_and_without_custom_fields_param
|
||||
@@ -536,14 +541,16 @@ class IssuesControllerTest < Test::Unit::TestCase
|
||||
def test_post_new_should_send_a_notification
|
||||
ActionMailer::Base.deliveries.clear
|
||||
@request.session[:user_id] = 2
|
||||
post :new, :project_id => 1,
|
||||
:issue => {:tracker_id => 3,
|
||||
:subject => 'This is the test_new issue',
|
||||
:description => 'This is the description',
|
||||
:priority_id => 5,
|
||||
:estimated_hours => '',
|
||||
:custom_field_values => {'2' => 'Value for field 2'}}
|
||||
assert_redirected_to :action => 'show'
|
||||
assert_difference 'Issue.count' do
|
||||
post :new, :project_id => 1,
|
||||
:issue => {:tracker_id => 3,
|
||||
:subject => 'This is the test_new issue',
|
||||
:description => 'This is the description',
|
||||
:priority_id => 5,
|
||||
:estimated_hours => '',
|
||||
:custom_field_values => {'2' => 'Value for field 2'}}
|
||||
end
|
||||
assert_redirected_to :controller => 'issues', :action => 'show', :id => Issue.last.id
|
||||
|
||||
assert_equal 1, ActionMailer::Base.deliveries.size
|
||||
end
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'journals_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class JournalsController; def rescue_action(e) raise e end; end
|
||||
|
||||
class JournalsControllerTest < Test::Unit::TestCase
|
||||
class JournalsControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :members, :member_roles, :roles, :issues, :journals, :journal_details, :enabled_modules
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'mail_handler_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class MailHandlerController; def rescue_action(e) raise e end; end
|
||||
|
||||
class MailHandlerControllerTest < Test::Unit::TestCase
|
||||
class MailHandlerControllerTest < ActionController::TestCase
|
||||
fixtures :users, :projects, :enabled_modules, :roles, :members, :member_roles, :issues, :issue_statuses, :trackers, :enumerations
|
||||
|
||||
FIXTURES_PATH = File.dirname(__FILE__) + '/../fixtures/mail_handler'
|
||||
|
||||
@@ -22,7 +22,7 @@ require 'members_controller'
|
||||
class MembersController; def rescue_action(e) raise e end; end
|
||||
|
||||
|
||||
class MembersControllerTest < Test::Unit::TestCase
|
||||
class MembersControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :members, :member_roles, :roles, :users
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'messages_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class MessagesController; def rescue_action(e) raise e end; end
|
||||
|
||||
class MessagesControllerTest < Test::Unit::TestCase
|
||||
class MessagesControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :members, :member_roles, :roles, :boards, :messages, :enabled_modules
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'my_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class MyController; def rescue_action(e) raise e end; end
|
||||
|
||||
class MyControllerTest < Test::Unit::TestCase
|
||||
class MyControllerTest < ActionController::TestCase
|
||||
fixtures :users, :issues, :issue_statuses, :trackers, :enumerations, :custom_fields
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'news_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class NewsController; def rescue_action(e) raise e end; end
|
||||
|
||||
class NewsControllerTest < Test::Unit::TestCase
|
||||
class NewsControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules, :news, :comments
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'projects_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class ProjectsController; def rescue_action(e) raise e end; end
|
||||
|
||||
class ProjectsControllerTest < Test::Unit::TestCase
|
||||
class ProjectsControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :versions, :users, :roles, :members, :member_roles, :issues, :journals, :journal_details,
|
||||
:trackers, :projects_trackers, :issue_statuses, :enabled_modules, :enumerations, :boards, :messages,
|
||||
:attachments
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'queries_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class QueriesController; def rescue_action(e) raise e end; end
|
||||
|
||||
class QueriesControllerTest < Test::Unit::TestCase
|
||||
class QueriesControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :members, :member_roles, :roles, :trackers, :issue_statuses, :issue_categories, :enumerations, :issues, :custom_fields, :custom_values, :queries
|
||||
|
||||
def setup
|
||||
@@ -70,7 +70,7 @@ class QueriesControllerTest < Test::Unit::TestCase
|
||||
:query => {"name" => "test_new_project_public_query", "is_public" => "1"}
|
||||
|
||||
q = Query.find_by_name('test_new_project_public_query')
|
||||
assert_redirected_to :controller => 'issues', :action => 'index', :query_id => q
|
||||
assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook', :query_id => q
|
||||
assert q.is_public?
|
||||
assert q.has_default_columns?
|
||||
assert q.valid?
|
||||
@@ -88,7 +88,7 @@ class QueriesControllerTest < Test::Unit::TestCase
|
||||
:query => {"name" => "test_new_project_private_query", "is_public" => "1"}
|
||||
|
||||
q = Query.find_by_name('test_new_project_private_query')
|
||||
assert_redirected_to :controller => 'issues', :action => 'index', :query_id => q
|
||||
assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook', :query_id => q
|
||||
assert !q.is_public?
|
||||
assert q.has_default_columns?
|
||||
assert q.valid?
|
||||
@@ -104,7 +104,7 @@ class QueriesControllerTest < Test::Unit::TestCase
|
||||
:query => {"name" => "test_new_global_private_query", "is_public" => "1", "column_names" => ["", "tracker", "subject", "priority", "category"]}
|
||||
|
||||
q = Query.find_by_name('test_new_global_private_query')
|
||||
assert_redirected_to :controller => 'issues', :action => 'index', :query_id => q
|
||||
assert_redirected_to :controller => 'issues', :action => 'index', :project_id => nil, :query_id => q
|
||||
assert !q.is_public?
|
||||
assert !q.has_default_columns?
|
||||
assert_equal [:tracker, :subject, :priority, :category], q.columns.collect {|c| c.name}
|
||||
|
||||
@@ -22,7 +22,7 @@ require 'reports_controller'
|
||||
class ReportsController; def rescue_action(e) raise e end; end
|
||||
|
||||
|
||||
class ReportsControllerTest < Test::Unit::TestCase
|
||||
class ReportsControllerTest < ActionController::TestCase
|
||||
fixtures :all
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'repositories_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class RepositoriesController; def rescue_action(e) raise e end; end
|
||||
|
||||
class RepositoriesBazaarControllerTest < Test::Unit::TestCase
|
||||
class RepositoriesBazaarControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :roles, :members, :member_roles, :repositories, :enabled_modules
|
||||
|
||||
# No '..' in the repository path
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'repositories_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class RepositoriesController; def rescue_action(e) raise e end; end
|
||||
|
||||
class RepositoriesControllerTest < Test::Unit::TestCase
|
||||
class RepositoriesControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :roles, :members, :member_roles, :repositories, :issues, :issue_statuses, :changesets, :changes, :issue_categories, :enumerations, :custom_fields, :custom_values, :trackers
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'repositories_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class RepositoriesController; def rescue_action(e) raise e end; end
|
||||
|
||||
class RepositoriesCvsControllerTest < Test::Unit::TestCase
|
||||
class RepositoriesCvsControllerTest < ActionController::TestCase
|
||||
|
||||
# No '..' in the repository path
|
||||
REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/cvs_repository'
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'repositories_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class RepositoriesController; def rescue_action(e) raise e end; end
|
||||
|
||||
class RepositoriesDarcsControllerTest < Test::Unit::TestCase
|
||||
class RepositoriesDarcsControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :roles, :members, :member_roles, :repositories, :enabled_modules
|
||||
|
||||
# No '..' in the repository path
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'repositories_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class RepositoriesController; def rescue_action(e) raise e end; end
|
||||
|
||||
class RepositoriesGitControllerTest < Test::Unit::TestCase
|
||||
class RepositoriesGitControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :roles, :members, :member_roles, :repositories, :enabled_modules
|
||||
|
||||
# No '..' in the repository path
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'repositories_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class RepositoriesController; def rescue_action(e) raise e end; end
|
||||
|
||||
class RepositoriesMercurialControllerTest < Test::Unit::TestCase
|
||||
class RepositoriesMercurialControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :roles, :members, :member_roles, :repositories, :enabled_modules
|
||||
|
||||
# No '..' in the repository path
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'repositories_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class RepositoriesController; def rescue_action(e) raise e end; end
|
||||
|
||||
class RepositoriesSubversionControllerTest < Test::Unit::TestCase
|
||||
class RepositoriesSubversionControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules,
|
||||
:repositories, :issues, :issue_statuses, :changesets, :changes,
|
||||
:issue_categories, :enumerations, :custom_fields, :custom_values, :trackers
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'roles_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class RolesController; def rescue_action(e) raise e end; end
|
||||
|
||||
class RolesControllerTest < Test::Unit::TestCase
|
||||
class RolesControllerTest < ActionController::TestCase
|
||||
fixtures :roles, :users, :members, :member_roles, :workflows
|
||||
|
||||
def setup
|
||||
|
||||
@@ -4,7 +4,7 @@ require 'search_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class SearchController; def rescue_action(e) raise e end; end
|
||||
|
||||
class SearchControllerTest < Test::Unit::TestCase
|
||||
class SearchControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :enabled_modules, :roles, :users, :members, :member_roles,
|
||||
:issues, :trackers, :issue_statuses,
|
||||
:custom_fields, :custom_values,
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'settings_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class SettingsController; def rescue_action(e) raise e end; end
|
||||
|
||||
class SettingsControllerTest < Test::Unit::TestCase
|
||||
class SettingsControllerTest < ActionController::TestCase
|
||||
fixtures :users
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'sys_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class SysController; def rescue_action(e) raise e end; end
|
||||
|
||||
class SysControllerTest < Test::Unit::TestCase
|
||||
class SysControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :repositories
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'timelog_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class TimelogController; def rescue_action(e) raise e end; end
|
||||
|
||||
class TimelogControllerTest < Test::Unit::TestCase
|
||||
class TimelogControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :enabled_modules, :roles, :members, :member_roles, :issues, :time_entries, :users, :trackers, :enumerations, :issue_statuses, :custom_fields, :custom_values
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'trackers_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class TrackersController; def rescue_action(e) raise e end; end
|
||||
|
||||
class TrackersControllerTest < Test::Unit::TestCase
|
||||
class TrackersControllerTest < ActionController::TestCase
|
||||
fixtures :trackers, :projects, :projects_trackers, :users, :issues
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'users_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class UsersController; def rescue_action(e) raise e end; end
|
||||
|
||||
class UsersControllerTest < Test::Unit::TestCase
|
||||
class UsersControllerTest < ActionController::TestCase
|
||||
include Redmine::I18n
|
||||
|
||||
fixtures :users, :projects, :members, :member_roles, :roles
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'versions_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class VersionsController; def rescue_action(e) raise e end; end
|
||||
|
||||
class VersionsControllerTest < Test::Unit::TestCase
|
||||
class VersionsControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :versions, :issues, :users, :roles, :members, :member_roles, :enabled_modules
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'watchers_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class WatchersController; def rescue_action(e) raise e end; end
|
||||
|
||||
class WatchersControllerTest < Test::Unit::TestCase
|
||||
class WatchersControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules,
|
||||
:issues, :trackers, :projects_trackers, :issue_statuses, :enumerations, :watchers
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'welcome_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class WelcomeController; def rescue_action(e) raise e end; end
|
||||
|
||||
class WelcomeControllerTest < Test::Unit::TestCase
|
||||
class WelcomeControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :news
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'wiki_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class WikiController; def rescue_action(e) raise e end; end
|
||||
|
||||
class WikiControllerTest < Test::Unit::TestCase
|
||||
class WikiControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules, :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions, :attachments
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'wikis_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class WikisController; def rescue_action(e) raise e end; end
|
||||
|
||||
class WikisControllerTest < Test::Unit::TestCase
|
||||
class WikisControllerTest < ActionController::TestCase
|
||||
fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules, :wikis
|
||||
|
||||
def setup
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'workflows_controller'
|
||||
# Re-raise errors caught by the controller.
|
||||
class WorkflowsController; def rescue_action(e) raise e end; end
|
||||
|
||||
class WorkflowsControllerTest < Test::Unit::TestCase
|
||||
class WorkflowsControllerTest < ActionController::TestCase
|
||||
fixtures :roles, :trackers, :workflows
|
||||
|
||||
def setup
|
||||
|
||||
@@ -4,7 +4,7 @@ class StubController < ApplicationController
|
||||
attr_accessor :request, :url
|
||||
end
|
||||
|
||||
class HelperTestCase < Test::Unit::TestCase
|
||||
class HelperTestCase < ActiveSupport::TestCase
|
||||
|
||||
# Add other helpers here if you need them
|
||||
include ActionView::Helpers::ActiveRecordHelper
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'test_help'
|
||||
require File.expand_path(File.dirname(__FILE__) + '/helper_testcase')
|
||||
require File.join(RAILS_ROOT,'test', 'mocks', 'open_id_authentication_mock.rb')
|
||||
|
||||
class Test::Unit::TestCase
|
||||
class ActiveSupport::TestCase
|
||||
# Transactional fixtures accelerate your tests by wrapping each test method
|
||||
# in a transaction that's rolled back on completion. This ensures that the
|
||||
# test database remains unchanged so your fixtures don't have to be reloaded
|
||||
@@ -55,7 +55,7 @@ class Test::Unit::TestCase
|
||||
end
|
||||
|
||||
def test_uploaded_file(name, mime)
|
||||
ActionController::TestUploadedFile.new(Test::Unit::TestCase.fixture_path + "/files/#{name}", mime)
|
||||
ActionController::TestUploadedFile.new(ActiveSupport::TestCase.fixture_path + "/files/#{name}", mime)
|
||||
end
|
||||
|
||||
# Use a temporary directory for attachment related tests
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class ActivityTest < Test::Unit::TestCase
|
||||
class ActivityTest < ActiveSupport::TestCase
|
||||
fixtures :projects, :versions, :attachments, :users, :roles, :members, :member_roles, :issues, :journals, :journal_details,
|
||||
:trackers, :projects_trackers, :issue_statuses, :enabled_modules, :enumerations, :boards, :messages
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class AttachmentTest < Test::Unit::TestCase
|
||||
class AttachmentTest < ActiveSupport::TestCase
|
||||
fixtures :issues, :users
|
||||
|
||||
def setup
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class AuthSourceLdapTest < Test::Unit::TestCase
|
||||
class AuthSourceLdapTest < ActiveSupport::TestCase
|
||||
|
||||
def setup
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class BoardTest < Test::Unit::TestCase
|
||||
class BoardTest < ActiveSupport::TestCase
|
||||
fixtures :projects, :boards, :messages
|
||||
|
||||
def setup
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class CalendarTest < Test::Unit::TestCase
|
||||
class CalendarTest < ActiveSupport::TestCase
|
||||
|
||||
def test_monthly
|
||||
c = Redmine::Helpers::Calendar.new(Date.today, :fr, :month)
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class ChangesetTest < Test::Unit::TestCase
|
||||
class ChangesetTest < ActiveSupport::TestCase
|
||||
fixtures :projects, :repositories, :issues, :issue_statuses, :changesets, :changes, :issue_categories, :enumerations, :custom_fields, :custom_values, :users, :members, :member_roles, :trackers
|
||||
|
||||
def setup
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class CommentTest < Test::Unit::TestCase
|
||||
class CommentTest < ActiveSupport::TestCase
|
||||
fixtures :users, :news, :comments
|
||||
|
||||
def setup
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class CustomFieldTest < Test::Unit::TestCase
|
||||
class CustomFieldTest < ActiveSupport::TestCase
|
||||
fixtures :custom_fields
|
||||
|
||||
def test_create
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class CustomValueTest < Test::Unit::TestCase
|
||||
class CustomValueTest < ActiveSupport::TestCase
|
||||
fixtures :custom_fields
|
||||
|
||||
def test_string_field_validation_with_blank_value
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class DefaultDataTest < Test::Unit::TestCase
|
||||
class DefaultDataTest < ActiveSupport::TestCase
|
||||
include Redmine::I18n
|
||||
fixtures :roles
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class DocumentCategoryTest < Test::Unit::TestCase
|
||||
class DocumentCategoryTest < ActiveSupport::TestCase
|
||||
fixtures :enumerations, :documents
|
||||
|
||||
def test_should_be_an_enumeration
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class DocumentTest < Test::Unit::TestCase
|
||||
class DocumentTest < ActiveSupport::TestCase
|
||||
fixtures :projects, :enumerations, :documents
|
||||
|
||||
def test_create
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class EnabledModuleTest < Test::Unit::TestCase
|
||||
class EnabledModuleTest < ActiveSupport::TestCase
|
||||
fixtures :projects, :wikis
|
||||
|
||||
def test_enabling_wiki_should_create_a_wiki
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class EnumerationTest < Test::Unit::TestCase
|
||||
class EnumerationTest < ActiveSupport::TestCase
|
||||
fixtures :enumerations, :issues
|
||||
|
||||
def setup
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
|
||||
class FilesystemAdapterTest < Test::Unit::TestCase
|
||||
class FilesystemAdapterTest < ActiveSupport::TestCase
|
||||
|
||||
REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/filesystem_repository'
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class GitAdapterTest < Test::Unit::TestCase
|
||||
class GitAdapterTest < ActiveSupport::TestCase
|
||||
REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/git_repository'
|
||||
|
||||
if File.directory?(REPOSITORY_PATH)
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class GroupTest < Test::Unit::TestCase
|
||||
class GroupTest < ActiveSupport::TestCase
|
||||
fixtures :all
|
||||
|
||||
def test_create
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class IssueCategoryTest < Test::Unit::TestCase
|
||||
class IssueCategoryTest < ActiveSupport::TestCase
|
||||
fixtures :issue_categories, :issues
|
||||
|
||||
def setup
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class IssuePriorityTest < Test::Unit::TestCase
|
||||
class IssuePriorityTest < ActiveSupport::TestCase
|
||||
fixtures :enumerations, :issues
|
||||
|
||||
def test_should_be_an_enumeration
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class IssueStatusTest < Test::Unit::TestCase
|
||||
class IssueStatusTest < ActiveSupport::TestCase
|
||||
fixtures :issue_statuses, :issues
|
||||
|
||||
def test_create
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class IssueTest < Test::Unit::TestCase
|
||||
class IssueTest < ActiveSupport::TestCase
|
||||
fixtures :projects, :users, :members, :member_roles,
|
||||
:trackers, :projects_trackers,
|
||||
:issue_statuses, :issue_categories, :issue_relations, :workflows,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class JournalTest < Test::Unit::TestCase
|
||||
class JournalTest < ActiveSupport::TestCase
|
||||
fixtures :issues, :issue_statuses, :journals, :journal_details
|
||||
|
||||
def setup
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../../../test_helper'
|
||||
|
||||
class Redmine::AccessControlTest < Test::Unit::TestCase
|
||||
class Redmine::AccessControlTest < ActiveSupport::TestCase
|
||||
|
||||
def setup
|
||||
@access_module = Redmine::AccessControl
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../../../test_helper'
|
||||
|
||||
class Redmine::Hook::ManagerTest < Test::Unit::TestCase
|
||||
class Redmine::Hook::ManagerTest < ActiveSupport::TestCase
|
||||
|
||||
fixtures :issues
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../../../test_helper'
|
||||
|
||||
class Redmine::I18nTest < Test::Unit::TestCase
|
||||
class Redmine::I18nTest < ActiveSupport::TestCase
|
||||
include Redmine::I18n
|
||||
|
||||
def setup
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../../../test_helper'
|
||||
|
||||
class Redmine::MimeTypeTest < Test::Unit::TestCase
|
||||
class Redmine::MimeTypeTest < ActiveSupport::TestCase
|
||||
|
||||
def test_of
|
||||
to_test = {'test.unk' => nil,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../../../test_helper'
|
||||
|
||||
class Redmine::PluginTest < Test::Unit::TestCase
|
||||
class Redmine::PluginTest < ActiveSupport::TestCase
|
||||
|
||||
def setup
|
||||
@klass = Redmine::Plugin
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../../../test_helper'
|
||||
|
||||
class Redmine::UnifiedDiffTest < Test::Unit::TestCase
|
||||
class Redmine::UnifiedDiffTest < ActiveSupport::TestCase
|
||||
|
||||
def setup
|
||||
end
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class MailHandlerTest < Test::Unit::TestCase
|
||||
class MailHandlerTest < ActiveSupport::TestCase
|
||||
fixtures :users, :projects,
|
||||
:enabled_modules,
|
||||
:roles,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class MailerTest < Test::Unit::TestCase
|
||||
class MailerTest < ActiveSupport::TestCase
|
||||
include Redmine::I18n
|
||||
fixtures :projects, :issues, :users, :members, :member_roles, :documents, :attachments, :news, :tokens, :journals, :journal_details, :changesets, :trackers, :issue_statuses, :enumerations, :messages, :boards, :repositories
|
||||
|
||||
@@ -103,9 +103,19 @@ class MailerTest < Test::Unit::TestCase
|
||||
journal = Journal.find(2)
|
||||
Mailer.deliver_issue_edit(journal)
|
||||
mail = ActionMailer::Base.deliveries.last
|
||||
assert !mail.body.include?('<a href="https://mydomain.foo/issues/1">Bug #1: Can\'t print recipes</a>')
|
||||
assert_equal 1, mail.parts.size
|
||||
assert !mail.encoded.include?('href')
|
||||
end
|
||||
|
||||
|
||||
def test_html_mail
|
||||
Setting.plain_text_mail = 0
|
||||
journal = Journal.find(2)
|
||||
Mailer.deliver_issue_edit(journal)
|
||||
mail = ActionMailer::Base.deliveries.last
|
||||
assert_equal 2, mail.parts.size
|
||||
assert mail.encoded.include?('href')
|
||||
end
|
||||
|
||||
def test_issue_add_message_id
|
||||
ActionMailer::Base.deliveries.clear
|
||||
issue = Issue.find(1)
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class MemberTest < Test::Unit::TestCase
|
||||
class MemberTest < ActiveSupport::TestCase
|
||||
fixtures :users, :projects, :roles, :members, :member_roles
|
||||
|
||||
def setup
|
||||
|
||||
@@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/../test_helper'
|
||||
begin
|
||||
require 'mocha'
|
||||
|
||||
class MercurialAdapterTest < Test::Unit::TestCase
|
||||
class MercurialAdapterTest < ActiveSupport::TestCase
|
||||
|
||||
TEMPLATES_DIR = Redmine::Scm::Adapters::MercurialAdapter::TEMPLATES_DIR
|
||||
TEMPLATE_NAME = Redmine::Scm::Adapters::MercurialAdapter::TEMPLATE_NAME
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class MessageTest < Test::Unit::TestCase
|
||||
class MessageTest < ActiveSupport::TestCase
|
||||
fixtures :projects, :roles, :members, :member_roles, :boards, :messages, :users, :watchers
|
||||
|
||||
def setup
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class NewsTest < Test::Unit::TestCase
|
||||
class NewsTest < ActiveSupport::TestCase
|
||||
fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules, :news
|
||||
|
||||
def valid_news
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class ProjectTest < Test::Unit::TestCase
|
||||
class ProjectTest < ActiveSupport::TestCase
|
||||
fixtures :projects, :enabled_modules,
|
||||
:issues, :issue_statuses, :journals, :journal_details,
|
||||
:users, :members, :member_roles, :roles, :projects_trackers, :trackers, :boards,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class QueryTest < Test::Unit::TestCase
|
||||
class QueryTest < ActiveSupport::TestCase
|
||||
fixtures :projects, :enabled_modules, :users, :members, :member_roles, :roles, :trackers, :issue_statuses, :issue_categories, :enumerations, :issues, :watchers, :custom_fields, :custom_values, :versions, :queries
|
||||
|
||||
def test_custom_fields_for_all_projects_should_be_available_in_global_queries
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class RepositoryBazaarTest < Test::Unit::TestCase
|
||||
class RepositoryBazaarTest < ActiveSupport::TestCase
|
||||
fixtures :projects
|
||||
|
||||
# No '..' in the repository path
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
require 'pp'
|
||||
class RepositoryCvsTest < Test::Unit::TestCase
|
||||
class RepositoryCvsTest < ActiveSupport::TestCase
|
||||
fixtures :projects
|
||||
|
||||
# No '..' in the repository path
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class RepositoryDarcsTest < Test::Unit::TestCase
|
||||
class RepositoryDarcsTest < ActiveSupport::TestCase
|
||||
fixtures :projects
|
||||
|
||||
# No '..' in the repository path
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class RepositoryFilesystemTest < Test::Unit::TestCase
|
||||
class RepositoryFilesystemTest < ActiveSupport::TestCase
|
||||
fixtures :projects
|
||||
|
||||
# No '..' in the repository path
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class RepositoryGitTest < Test::Unit::TestCase
|
||||
class RepositoryGitTest < ActiveSupport::TestCase
|
||||
fixtures :projects
|
||||
|
||||
# No '..' in the repository path
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class RepositoryMercurialTest < Test::Unit::TestCase
|
||||
class RepositoryMercurialTest < ActiveSupport::TestCase
|
||||
fixtures :projects
|
||||
|
||||
# No '..' in the repository path
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class RepositorySubversionTest < Test::Unit::TestCase
|
||||
class RepositorySubversionTest < ActiveSupport::TestCase
|
||||
fixtures :projects
|
||||
|
||||
# No '..' in the repository path for svn
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class RepositoryTest < Test::Unit::TestCase
|
||||
class RepositoryTest < ActiveSupport::TestCase
|
||||
fixtures :projects,
|
||||
:trackers,
|
||||
:projects_trackers,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class RoleTest < Test::Unit::TestCase
|
||||
class RoleTest < ActiveSupport::TestCase
|
||||
fixtures :roles, :workflows
|
||||
|
||||
def test_copy_workflows
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class SearchTest < Test::Unit::TestCase
|
||||
class SearchTest < ActiveSupport::TestCase
|
||||
fixtures :users,
|
||||
:members,
|
||||
:member_roles,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class SettingTest < Test::Unit::TestCase
|
||||
class SettingTest < ActiveSupport::TestCase
|
||||
|
||||
def test_read_default
|
||||
assert_equal "Redmine", Setting.app_title
|
||||
|
||||
@@ -19,7 +19,7 @@ require 'mkmf'
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class SubversionAdapterTest < Test::Unit::TestCase
|
||||
class SubversionAdapterTest < ActiveSupport::TestCase
|
||||
|
||||
if find_executable0('svn')
|
||||
def test_client_version
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class TimeEntryActivityTest < Test::Unit::TestCase
|
||||
class TimeEntryActivityTest < ActiveSupport::TestCase
|
||||
fixtures :enumerations, :time_entries
|
||||
|
||||
def test_should_be_an_enumeration
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class TimeEntryTest < Test::Unit::TestCase
|
||||
class TimeEntryTest < ActiveSupport::TestCase
|
||||
fixtures :issues, :projects, :users, :time_entries
|
||||
|
||||
def test_hours_format
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class TokenTest < Test::Unit::TestCase
|
||||
class TokenTest < ActiveSupport::TestCase
|
||||
fixtures :tokens
|
||||
|
||||
def test_create
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class TrackerTest < Test::Unit::TestCase
|
||||
class TrackerTest < ActiveSupport::TestCase
|
||||
fixtures :trackers, :workflows
|
||||
|
||||
def test_copy_workflows
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class UserPreferenceTest < Test::Unit::TestCase
|
||||
class UserPreferenceTest < ActiveSupport::TestCase
|
||||
fixtures :users, :user_preferences
|
||||
|
||||
def test_create
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class UserTest < Test::Unit::TestCase
|
||||
class UserTest < ActiveSupport::TestCase
|
||||
fixtures :users, :members, :projects, :roles, :member_roles
|
||||
|
||||
def setup
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class VersionTest < Test::Unit::TestCase
|
||||
class VersionTest < ActiveSupport::TestCase
|
||||
fixtures :projects, :users, :issues, :issue_statuses, :trackers, :enumerations, :versions
|
||||
|
||||
def setup
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class WatcherTest < Test::Unit::TestCase
|
||||
class WatcherTest < ActiveSupport::TestCase
|
||||
fixtures :issues, :users
|
||||
|
||||
def setup
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class WikiContentTest < Test::Unit::TestCase
|
||||
class WikiContentTest < ActiveSupport::TestCase
|
||||
fixtures :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions, :users
|
||||
|
||||
def setup
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user