summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
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