summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-30 15:10:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-30 15:10:56 +0000
commitd22029083c486bb4d67bee26cf496f642491890c (patch)
treed2453eba4852f71e847e0a1529a8e42bf08106d0 /test/test_helper.rb
parent78e6717ba70f4b5e24012bc29d3e12c0e38adf04 (diff)
downloadredmine-d22029083c486bb4d67bee26cf496f642491890c.tar.gz
redmine-d22029083c486bb4d67bee26cf496f642491890c.zip
Pull up #setup and #teardown in API tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@13679 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 27acdfc91..7ec75708e 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -253,6 +253,13 @@ module Redmine
# Base class for API tests
class Base < ActionDispatch::IntegrationTest
+ def setup
+ Setting.rest_api_enabled = '1'
+ end
+
+ def teardown
+ Setting.rest_api_enabled = '0'
+ end
end
class Routing < Redmine::RoutingTest