summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/api.rb7
-rw-r--r--spec/support/security.rb0
2 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
diff --git a/spec/support/security.rb b/spec/support/security.rb
deleted file mode 100644
index e69de29bb2d..00000000000
--- a/spec/support/security.rb
+++ /dev/null