diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-11-20 17:41:06 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-11-20 17:46:53 +0300 |
commit | 0a611caaf9e92dd527b3200c52c1cd79958b8077 (patch) | |
tree | 76dd57fbac62b74fba95d4a7f18a55282648857c /spec/support/shared_examples/ci_trace_shared_examples.rb | |
parent | 747a5c425a0ce1aa5e9005a03804f2ea513aa73b (diff) |
Improve specs for hiding runners tokens in traces
Diffstat (limited to 'spec/support/shared_examples/ci_trace_shared_examples.rb')
-rw-r--r-- | spec/support/shared_examples/ci_trace_shared_examples.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/support/shared_examples/ci_trace_shared_examples.rb b/spec/support/shared_examples/ci_trace_shared_examples.rb index 94e82b8ce90..a8bc7ccfbc9 100644 --- a/spec/support/shared_examples/ci_trace_shared_examples.rb +++ b/spec/support/shared_examples/ci_trace_shared_examples.rb @@ -180,10 +180,9 @@ shared_examples_for 'common trace features' do end context 'runners token' do - let(:token) { 'my_secret_token' } + let(:token) { build.project.runners_token } before do - build.project.update(runners_token: token) trace.set(token) end @@ -193,10 +192,9 @@ shared_examples_for 'common trace features' do end context 'hides build token' do - let(:token) { 'my_secret_token' } + let(:token) { build.token } before do - build.update(token: token) trace.set(token) end |