Mercurial > hg > soundsoftware-site
view test/integration/api_test/token_authentication_test.rb @ 1119:22d81bd0b62c redmine-2.2-integration
Deleted existing the embedded plugin and replaced it witgh redmine_embedded (same functionality, but upgraded to be compatible with Redmine 2.x).
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 08 Jan 2013 14:43:04 +0000 |
parents | cbb26bc654de |
children | 622f24f53b42 261b3d9a4903 |
line wrap: on
line source
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