summaryrefslogtreecommitdiff
path: root/tools/test.rb
diff options
context:
space:
mode:
authorMax Wittig <max.wittig95@gmail.com>2019-06-10 19:09:18 +0200
committerMax Wittig <max.wittig95@gmail.com>2019-06-10 20:09:41 +0200
commit7040b4c207975f9a4ad3ea7d14d4c8c57e901188 (patch)
treee07dec83fa696eab71fbe3941327e05feb2f960d /tools/test.rb
parente45a6e2618db30834f732c5a7bc9f1c038c45c31 (diff)
downloadgitlab-chore/fix-ci-travis.tar.gz
chore(ci): fix travis testschore/fix-ci-travis
Diffstat (limited to 'tools/test.rb')
-rw-r--r--tools/test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/test.rb b/tools/test.rb
new file mode 100644
index 0000000..80dc331
--- /dev/null
+++ b/tools/test.rb
@@ -0,0 +1,11 @@
+#!/usr/bin/env ruby
+u = User.first
+u.password_automatically_set = false
+u.password = 'password'
+u.password_confirmation = 'password'
+u.save!
+
+t = PersonalAccessToken.new({ user: u, name: 'node-gitlab', scopes: ['api']})
+t.save!
+
+puts t.token