mirror of
https://github.com/redmine/redmine.git
synced 2026-05-05 19:35:53 +02: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:
@@ -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
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class WikiPageTest < Test::Unit::TestCase
|
||||
class WikiPageTest < ActiveSupport::TestCase
|
||||
fixtures :projects, :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions
|
||||
|
||||
def setup
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class WikiRedirectTest < Test::Unit::TestCase
|
||||
class WikiRedirectTest < ActiveSupport::TestCase
|
||||
fixtures :projects, :wikis
|
||||
|
||||
def setup
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class WikiTest < Test::Unit::TestCase
|
||||
class WikiTest < ActiveSupport::TestCase
|
||||
fixtures :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions
|
||||
|
||||
def test_create
|
||||
|
||||
Reference in New Issue
Block a user