Commit d799ffed authored by jplang's avatar jplang

Adds a subclass of ActionDispatch::IntegrationTest for API tests.

git-svn-id: https://svn.redmine.org/redmine/trunk@11253 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent aac6b64a
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::AttachmentsTest < ActionController::IntegrationTest
class Redmine::ApiTest::AttachmentsTest < Redmine::ApiTest::Base
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::AuthenticationTest < ActionController::IntegrationTest
class Redmine::ApiTest::AuthenticationTest < Redmine::ApiTest::Base
fixtures :users
def setup
......
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::DisabledRestApiTest < ActionController::IntegrationTest
class Redmine::ApiTest::DisabledRestApiTest < Redmine::ApiTest::Base
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::EnumerationsTest < ActionController::IntegrationTest
class Redmine::ApiTest::EnumerationsTest < Redmine::ApiTest::Base
fixtures :enumerations
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::GroupsTest < ActionController::IntegrationTest
class Redmine::ApiTest::GroupsTest < Redmine::ApiTest::Base
fixtures :users, :groups_users
def setup
......
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::HttpBasicLoginTest < ActionController::IntegrationTest
class Redmine::ApiTest::HttpBasicLoginTest < Redmine::ApiTest::Base
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
......
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::HttpBasicLoginWithApiTokenTest < ActionController::IntegrationTest
class Redmine::ApiTest::HttpBasicLoginWithApiTokenTest < Redmine::ApiTest::Base
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::IssueCategoriesTest < ActionController::IntegrationTest
class Redmine::ApiTest::IssueCategoriesTest < Redmine::ApiTest::Base
fixtures :projects, :users, :issue_categories, :issues,
:roles,
:member_roles,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::IssueRelationsTest < ActionController::IntegrationTest
class Redmine::ApiTest::IssueRelationsTest < Redmine::ApiTest::Base
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::IssueStatusesTest < ActionController::IntegrationTest
class Redmine::ApiTest::IssueStatusesTest < Redmine::ApiTest::Base
fixtures :issue_statuses
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::IssuesTest < ActionController::IntegrationTest
class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base
fixtures :projects,
:users,
:roles,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::JsonpTest < ActionController::IntegrationTest
class Redmine::ApiTest::JsonpTest < Redmine::ApiTest::Base
fixtures :trackers
def test_jsonp_should_accept_callback_param
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::MembershipsTest < ActionController::IntegrationTest
class Redmine::ApiTest::MembershipsTest < Redmine::ApiTest::Base
fixtures :projects, :users, :roles, :members, :member_roles
def setup
......
......@@ -16,8 +16,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
require File.expand_path('../../../test_helper', __FILE__)
require 'pp'
class ApiTest::NewsTest < ActionController::IntegrationTest
class Redmine::ApiTest::NewsTest < Redmine::ApiTest::Base
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::ProjectsTest < ActionController::IntegrationTest
class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base
fixtures :projects, :versions, :users, :roles, :members, :member_roles, :issues, :journals, :journal_details,
:trackers, :projects_trackers, :issue_statuses, :enabled_modules, :enumerations, :boards, :messages,
:attachments, :custom_fields, :custom_values, :time_entries, :issue_categories
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::QueriesTest < ActionController::IntegrationTest
class Redmine::ApiTest::QueriesTest < Redmine::ApiTest::Base
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::RolesTest < ActionController::IntegrationTest
class Redmine::ApiTest::RolesTest < Redmine::ApiTest::Base
fixtures :roles
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::TimeEntriesTest < ActionController::IntegrationTest
class Redmine::ApiTest::TimeEntriesTest < Redmine::ApiTest::Base
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
......
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::TokenAuthenticationTest < ActionController::IntegrationTest
class Redmine::ApiTest::TokenAuthenticationTest < Redmine::ApiTest::Base
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::TrackersTest < ActionController::IntegrationTest
class Redmine::ApiTest::TrackersTest < Redmine::ApiTest::Base
fixtures :trackers
def setup
......
......@@ -16,8 +16,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
require File.expand_path('../../../test_helper', __FILE__)
require 'pp'
class ApiTest::UsersTest < ActionController::IntegrationTest
class Redmine::ApiTest::UsersTest < Redmine::ApiTest::Base
fixtures :users, :members, :member_roles, :roles, :projects
def setup
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::VersionsTest < ActionController::IntegrationTest
class Redmine::ApiTest::VersionsTest < Redmine::ApiTest::Base
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::WikiPagesTest < ActionController::IntegrationTest
class Redmine::ApiTest::WikiPagesTest < Redmine::ApiTest::Base
fixtures :projects, :users, :roles, :members, :member_roles,
:enabled_modules, :wikis, :wiki_pages, :wiki_contents,
:wiki_content_versions, :attachments
......
This diff is collapsed.
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