diff options
Diffstat (limited to 'tools/test.rb')
-rw-r--r-- | tools/test.rb | 11 |
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 |