Pull up #setup and #teardown in API tests.

git-svn-id: http://svn.redmine.org/redmine/trunk@13679 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2014-11-30 15:10:56 +00:00
parent 78e6717ba7
commit d22029083c
22 changed files with 10 additions and 82 deletions

View File

@@ -20,10 +20,6 @@ require File.expand_path('../../../test_helper', __FILE__)
class Redmine::ApiTest::GroupsTest < Redmine::ApiTest::Base
fixtures :users, :groups_users
def setup
Setting.rest_api_enabled = '1'
end
test "GET /groups.xml should require authentication" do
get '/groups.xml'
assert_response 401