Browse Source

Move all API tests into the ApiTest module to make management easier

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4357 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.1.0
Eric Davis 13 years ago
parent
commit
d5fde17bf5

test/integration/disabled_rest_api_test.rb → test/integration/api_test/disabled_rest_api_test.rb View File

require "#{File.dirname(__FILE__)}/../test_helper"
require "#{File.dirname(__FILE__)}/../../test_helper"


class DisabledRestApi < ActionController::IntegrationTest
class ApiTest::DisabledRestApiTest < ActionController::IntegrationTest
fixtures :all fixtures :all


def setup def setup

test/integration/http_basic_login_test.rb → test/integration/api_test/http_basic_login_test.rb View File

require "#{File.dirname(__FILE__)}/../test_helper"
require "#{File.dirname(__FILE__)}/../../test_helper"


class HttpBasicLoginTest < ActionController::IntegrationTest
class ApiTest::HttpBasicLoginTest < ActionController::IntegrationTest
fixtures :all fixtures :all


def setup def setup

test/integration/http_basic_login_with_api_token_test.rb → test/integration/api_test/http_basic_login_with_api_token_test.rb View File

require "#{File.dirname(__FILE__)}/../test_helper"
require "#{File.dirname(__FILE__)}/../../test_helper"


class HttpBasicLoginWithApiTokenTest < ActionController::IntegrationTest
class ApiTest::HttpBasicLoginWithApiTokenTest < ActionController::IntegrationTest
fixtures :all fixtures :all


def setup def setup

test/integration/issues_api_test.rb → test/integration/api_test/issues_test.rb View File

# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


require "#{File.dirname(__FILE__)}/../test_helper"
require "#{File.dirname(__FILE__)}/../../test_helper"


class IssuesApiTest < ActionController::IntegrationTest
class ApiTest::IssuesTest < ActionController::IntegrationTest
fixtures :projects, fixtures :projects,
:users, :users,
:roles, :roles,

test/integration/projects_api_test.rb → test/integration/api_test/projects_test.rb View File

# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


require "#{File.dirname(__FILE__)}/../test_helper"
require "#{File.dirname(__FILE__)}/../../test_helper"


class ProjectsApiTest < ActionController::IntegrationTest
class ApiTest::ProjectsTest < ActionController::IntegrationTest
fixtures :projects, :versions, :users, :roles, :members, :member_roles, :issues, :journals, :journal_details, fixtures :projects, :versions, :users, :roles, :members, :member_roles, :issues, :journals, :journal_details,
:trackers, :projects_trackers, :issue_statuses, :enabled_modules, :enumerations, :boards, :messages, :trackers, :projects_trackers, :issue_statuses, :enabled_modules, :enumerations, :boards, :messages,
:attachments, :custom_fields, :custom_values, :time_entries :attachments, :custom_fields, :custom_values, :time_entries

test/integration/api_token_login_test.rb → test/integration/api_test/token_authentication_test.rb View File

require "#{File.dirname(__FILE__)}/../test_helper"
require "#{File.dirname(__FILE__)}/../../test_helper"


class ApiTokenLoginTest < ActionController::IntegrationTest
class ApiTest::TokenAuthenticationTest < ActionController::IntegrationTest
fixtures :all fixtures :all


def setup def setup

+ 4
- 0
test/test_helper.rb View File

end end
end end
end end

# Simple module to "namespace" all of the API tests
module ApiTest
end

Loading…
Cancel
Save