Top Level Namespace

Defined Under Namespace

Modules: AccountHelper, ActiveRecord, ActivitiesHelper, AdminHelper, ApplicationHelper, AttachmentsHelper, AuthSourcesHelper, AvatarsHelper, BoardsHelper, CalendarsHelper, ContextMenusHelper, CustomFieldsHelper, Diffable, DocumentsHelper, EmailAddressesHelper, EnumerationsHelper, FixedIssuesExtension, GanttHelper, GravatarHelper, GroupsHelper, ImportsHelper, IssueCategoriesHelper, IssueRelationsHelper, IssueStatusesHelper, IssuesHelper, JournalsHelper, MailHandlerHelper, MembersHelper, MessagesHelper, MyHelper, NewsHelper, OpenID, OpenIdAuthentication, PrincipalMembershipsHelper, ProjectsHelper, ProjectsQueriesHelper, QueriesHelper, Redmine, RedmineDiff, ReportsHelper, RepositoriesHelper, RolesHelper, RoutesHelper, SearchHelper, SettingsHelper, SortHelper, TimelogHelper, TrackersHelper, UsersHelper, VersionsHelper, WatchersHelper, WelcomeHelper, WikiHelper, WorkflowsHelper Classes: AccountController, ActivitiesController, AdminController, AnonymousUser, ApplicationController, Array, Attachment, AttachmentsController, AuthSource, AuthSourceException, AuthSourceLdap, AuthSourceTimeoutException, AuthSourcesController, AutoCompletesController, Board, BoardsController, CalendarsController, Change, Changeset, ChangesetNotFound, Comment, CommentsController, ContextMenusController, CustomField, CustomFieldEnumeration, CustomFieldEnumerationsController, CustomFieldValue, CustomFieldsController, CustomValue, DateValidator, Document, DocumentCategory, DocumentCategoryCustomField, DocumentCustomField, DocumentsController, EmailAddress, EmailAddressesController, EnabledModule, Enumeration, EnumerationsController, FilesController, GanttsController, Group, GroupAnonymous, GroupBuiltin, GroupCustomField, GroupNonMember, GroupsController, Import, ImportItem, ImportsController, InvalidRevisionParam, Issue, IssueCategoriesController, IssueCategory, IssueCustomField, IssueImport, IssuePriority, IssuePriorityCustomField, IssueQuery, IssueRelation, IssueRelationsController, IssueStatus, IssueStatusesController, IssuesController, Journal, JournalDetail, JournalsController, MailHandler, MailHandlerController, Mailer, MemCacheStoreTest, Member, MemberRole, MembersController, Message, MessagesController, Mixin, MyController, News, NewsController, NormalizeTest, OpenIdAuthenticationTablesGenerator, OpenIdAuthenticationTest, PreviewsController, Principal, PrincipalMembershipsController, Project, ProjectCustomField, ProjectEnumerationsController, ProjectQuery, ProjectsController, QueriesController, Query, QueryAssociationColumn, QueryAssociationCustomFieldColumn, QueryColumn, QueryCustomFieldColumn, QueryFilter, RecursivelyCascadedTreeMixin, RedCloth3, RedminePluginControllerGenerator, RedminePluginGenerator, RedminePluginMigrationGenerator, RedminePluginModelGenerator, ReportsController, RepositoriesController, Repository, Role, RolesController, ScmFetchError, SearchController, Setting, SettingsController, StatusTest, String, SysController, TimeEntry, TimeEntryActivity, TimeEntryActivityCustomField, TimeEntryCustomField, TimeEntryImport, TimeEntryQuery, TimelogController, TimestampQueryColumn, Token, Tracker, TrackersController, TreeMixin, TreeMixinWithoutOrder, TreeTest, TreeTestWithEagerLoading, TreeTestWithoutOrder, Unauthorized, UpgradeOpenIdAuthenticationTablesGenerator, User, UserCustomField, UserImport, UserPreference, UsersController, Version, VersionCustomField, VersionsController, Watcher, WatchersController, WelcomeController, Wiki, WikiAnnotate, WikiContent, WikiContentVersion, WikiController, WikiDiff, WikiPage, WikiRedirect, WikisController, WorkflowPermission, WorkflowRule, WorkflowTransition, WorkflowsController

Constant Summary collapse

RAILS_ROOT =
File.dirname(__FILE__)

Constants included from GravatarHelper

GravatarHelper::DEFAULT_OPTIONS

Instance Method Summary collapse

Methods included from GravatarHelper::PublicMethods

#gravatar, #gravatar_api_url, #gravatar_for, #gravatar_url

Instance Method Details

#setup_dbObject


29
30
31
32
33
34
35
36
37
# File 'lib/plugins/acts_as_tree/test/acts_as_tree_test.rb', line 29

def setup_db
  ActiveRecord::Base.logger
  ActiveRecord::Schema.define(:version => 1) do
    create_table :mixins do |t|
      t.column :type, :string
      t.column :parent_id, :integer
    end
  end
end

#teardown_dbObject


39
40
41
42
43
# File 'lib/plugins/acts_as_tree/test/acts_as_tree_test.rb', line 39

def teardown_db
  ActiveRecord::Base.connection.tables.each do |table|
    ActiveRecord::Base.connection.drop_table(table)
  end
end