##// END OF EJS Templates
Removed some shoulda context....
Removed some shoulda context. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11863 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r11633:8f7b69f77e7f
r11633:8f7b69f77e7f
Show More
token_authentication_test.rb
42 lines | 1.5 KiB | text/x-ruby | RubyLexer
/ test / integration / api_test / token_authentication_test.rb
Jean-Philippe Lang
Adds missing copyright....
r11024 # Redmine - project management software
# Copyright (C) 2006-2013 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Jean-Baptiste Barth
Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050...
r4395 require File.expand_path('../../../test_helper', __FILE__)
Eric Davis
Allow authenticating with an API token via XML or JSON. (#3920)...
r3104
Jean-Philippe Lang
Adds a subclass of ActionDispatch::IntegrationTest for API tests....
r11023 class Redmine::ApiTest::TokenAuthenticationTest < Redmine::ApiTest::Base
Toshi MARUYAMA
Rails3: replace "all" fixtures at test/integration/api_test/token_authentication_test.rb...
r7398 fixtures :projects, :trackers, :issue_statuses, :issues,
:enumerations, :users, :issue_categories,
:projects_trackers,
:roles,
:member_roles,
:members,
Jean-Philippe Lang
Removed unused fixtures....
r11122 :enabled_modules
Eric Davis
Allow authenticating with an API token via XML or JSON. (#3920)...
r3104
Eric Davis
Added support for HTTP Basic access to the API. (#3920)...
r3105 def setup
Eric Davis
Added an Admin setting to enable/disable the REST web service. (#3920)...
r3106 Setting.rest_api_enabled = '1'
Eric Davis
Added support for HTTP Basic access to the API. (#3920)...
r3105 Setting.login_required = '1'
end
def teardown
Eric Davis
Added an Admin setting to enable/disable the REST web service. (#3920)...
r3106 Setting.rest_api_enabled = '0'
Eric Davis
Added support for HTTP Basic access to the API. (#3920)...
r3105 Setting.login_required = '0'
end
Toshi MARUYAMA
remove trailing white-spaces from test/integration/api_test/token_authentication_test.rb....
r6551
Eric Davis
Allow authenticating with an API token via XML or JSON. (#3920)...
r3104 # Using the NewsController because it's a simple API.
Jean-Philippe Lang
Removed some shoulda context....
r11633 should_allow_key_based_auth(:get, "/news.xml")
should_allow_key_based_auth(:get, "/news.json")
Eric Davis
Allow authenticating with an API token via XML or JSON. (#3920)...
r3104 end