##// END OF EJS Templates
scm: rename JavaScript "branchGraph" function name to "revisionGraph"...
scm: rename JavaScript "branchGraph" function name to "revisionGraph" "Branch" is not a common concept in the SCMs. Mercurial "branch" has three terms. * named branch * unnamed branch (multiple heads) * big-picture branch (cloning repository) Git "branch" is a reference to a specific revision. It is popular that Mercurial GUI shows all revisions on the top page. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8779 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r7398:233bdd777915
r8659:232fca78a2d3
Show More
token_authentication_test.rb
33 lines | 853 B | text/x-ruby | RubyLexer
/ test / integration / api_test / token_authentication_test.rb
require File.expand_path('../../../test_helper', __FILE__)
class ApiTest::TokenAuthenticationTest < ActionController::IntegrationTest
fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
:roles,
:member_roles,
:members,
:enabled_modules,
:workflows
def setup
Setting.rest_api_enabled = '1'
Setting.login_required = '1'
end
def teardown
Setting.rest_api_enabled = '0'
Setting.login_required = '0'
end
# Using the NewsController because it's a simple API.
context "get /news" do
context "in :xml format" do
should_allow_key_based_auth(:get, "/news.xml")
end
context "in :json format" do
should_allow_key_based_auth(:get, "/news.json")
end
end
end