Commit Graph

8 Commits

Author SHA1 Message Date
DJ Mountney fb5f7733f1 Allow users to seed the initial runner registration token using an environment variable
This is useful for when runner is bundled with gitlab, like in a kubernetes stack, and we want the runner to be able to
register with gitlab as soon as they both come up.
2016-12-01 17:21:21 -08:00
tiagonbotelho 1d268a89de adds second batch of tests changed to active tense 2016-08-09 15:11:39 +01:00
Robert Speicher 75739e54be Enable RSpec/NotToNot cop and auto-correct offenses
Also removes the note from the development/testing.md guide
2016-05-24 15:40:29 -04:00
Robert Speicher 3ba72f69af Enable Style/SpaceAroundKeyword cop and fix offenses 2016-05-23 14:16:35 -04:00
Grzegorz Bizon 37731ba1a1 Add method that persist ensured token in `TokenAuthenticatable` 2015-12-23 10:47:18 +01:00
Grzegorz Bizon 76f7e80455 Fix method that ensures authentication token
Until now, `ensure_#{token_filed_name}` method didn't persist new token in database.

This closes #4235.
2015-12-23 09:37:01 +01:00
Grzegorz Bizon 917effb737 Make sure that token `ensure_*` method always returns a token 2015-12-11 14:39:51 +01:00
Grzegorz Bizon 30e29bb924 Add specs for `TokenAuthenticatable` concern 2015-12-11 10:39:39 +01:00