summaryrefslogtreecommitdiff
path: root/spec/support/api_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/api_helpers.rb')
-rw-r--r--spec/support/api_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/api_helpers.rb b/spec/support/api_helpers.rb
index 68b196d9033..e25cb9ecd89 100644
--- a/spec/support/api_helpers.rb
+++ b/spec/support/api_helpers.rb
@@ -18,7 +18,7 @@ module ApiHelpers
#
# Returns the relative path to the requested API resource
def api(path, user = nil)
- "/api/#{API::API.version}#{path}" +
+ "/api/#{API::API.version}#{URI.escape(path)}" +
# Normalize query string
(path.index('?') ? '' : '?') +