Top Level Namespace

Defined Under Namespace

Modules: AccountHelper, ActiveRecord, ActivitiesHelper, AdminHelper, ApplicationHelper, AttachmentsHelper, AuthSourcesHelper, BoardsHelper, CalendarsHelper, ContextMenusHelper, CustomFieldsHelper, Diffable, DocumentsHelper, EnumerationsHelper, GanttHelper, GravatarHelper, GroupsHelper, IssueCategoriesHelper, IssueRelationsHelper, IssueStatusesHelper, IssuesHelper, JournalsHelper, LockedPageExtension, MailHandlerHelper, MembersHelper, MessagesHelper, MyHelper, NewsHelper, OpenID, OpenIdAuthentication, PrincipalMembershipsHelper, ProjectsHelper, QueriesHelper, Redmine, RedmineDiff, ReportsHelper, RepositoriesHelper, RolesHelper, RoutesHelper, SVG, SearchHelper, SettingsHelper, SortHelper, TimelogHelper, TrackersHelper, UsersHelper, VersionsHelper, WatchersHelper, WelcomeHelper, WikiHelper, WorkflowsHelper Classes: AccountController, ActivitiesController, AddVersionedTables, AdminController, AnonymousUser, ApplicationController, Array, Attachment, AttachmentsController, AuthSource, AuthSourceException, AuthSourceLdap, AuthSourceTimeoutException, AuthSourcesController, Author, AutoCompletesController, Board, BoardsController, CalendarsController, Change, Changeset, ChangesetNotFound, Comment, CommentsController, ContextMenusController, CustomField, CustomFieldValue, CustomFieldsController, CustomValue, Date, DateValidator, Document, DocumentCategory, DocumentCategoryCustomField, DocumentsController, EnabledModule, Enumeration, EnumerationsController, FilesController, GanttsController, Group, GroupAnonymous, GroupBuiltin, GroupCustomField, GroupNonMember, GroupsController, InvalidRevisionParam, Issue, IssueCategoriesController, IssueCategory, IssueCustomField, IssuePriority, IssuePriorityCustomField, IssueQuery, IssueRelation, IssueRelationsController, IssueStatus, IssueStatusesController, IssuesController, Journal, JournalDetail, JournalsController, Landmark, ListMixin, ListMixinSub1, ListMixinSub2, ListSubTest, ListTest, ListWithStringScopeMixin, LockedPage, MailHandler, MailHandlerController, Mailer, MemCacheStoreTest, Member, MemberRole, MembersController, Message, MessagesController, MigrationTest, Mixin, MyController, News, NewsController, NormalizeTest, OpenIdAuthenticationTablesGenerator, OpenIdAuthenticationTest, Page, PreviewsController, Principal, PrincipalMembershipsController, Project, ProjectCustomField, ProjectEnumerationsController, ProjectsController, QueriesController, Query, QueryAssociationCustomFieldColumn, QueryColumn, QueryCustomFieldColumn, RecursivelyCascadedTreeMixin, RedCloth3, RedminePluginControllerGenerator, RedminePluginGenerator, RedminePluginModelGenerator, ReportsController, RepositoriesController, Repository, Role, RolesController, ScmFetchError, SearchController, Setting, SettingsController, SpecialLockedPage, StatusTest, String, SysController, Thing, TimeEntry, TimeEntryActivity, TimeEntryActivityCustomField, TimeEntryCustomField, TimeEntryQuery, TimelogController, Token, Tracker, TrackersController, TreeMixin, TreeMixinWithoutOrder, TreeTest, TreeTestWithEagerLoading, TreeTestWithoutOrder, Unauthorized, UpgradeOpenIdAuthenticationTablesGenerator, User, UserCustomField, UserPreference, UsersController, Version, VersionCustomField, VersionedTest, VersionsController, Watcher, WatchersController, WelcomeController, Widget, Wiki, WikiAnnotate, WikiContent, 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


11
12
13
14
15
16
17
18
19
20
# File 'lib/plugins/acts_as_list/test/list_test.rb', line 11

def setup_db
  ActiveRecord::Schema.define(:version => 1) do
    create_table :mixins do |t|
      t.column :pos, :integer
      t.column :parent_id, :integer
      t.column :created_at, :datetime      
      t.column :updated_at, :datetime
    end
  end
end

#teardown_dbObject


22
23
24
25
26
# File 'lib/plugins/acts_as_list/test/list_test.rb', line 22

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