require'spec_helper'require'rainbow/ext/string'describe'seed production settings',lib: truedocontext'GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN is set in the environment'dobeforedoallow(ENV).toreceive(:[]).and_call_originalallow(ENV).toreceive(:[]).with('GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN').and_return('013456789')endit'writes the token to the database'doload(File.join(__dir__,'../../../db/fixtures/production/010_settings.rb'))expect(ApplicationSetting.current.runners_registration_token).toeq('013456789')endendend