summaryrefslogtreecommitdiff
path: root/spec/support/api.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/api.rb')
-rw-r--r--spec/support/api.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/support/api.rb b/spec/support/api.rb
new file mode 100644
index 00000000000..d363d8b9a57
--- /dev/null
+++ b/spec/support/api.rb
@@ -0,0 +1,7 @@
+def api_prefix
+ "/api/#{Gitlab::API::VERSION}"
+end
+
+def json_response
+ JSON.parse(response.body)
+end