blob: d6510649dba9fb6211f81666b79f0e10923efc33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
require 'spec_helper'
describe Gitlab::Ci::Trace, :clean_gitlab_redis_shared_state do
let(:build) { create(:ci_build) }
let(:trace) { described_class.new(build) }
describe "associations" do
it { expect(trace).to respond_to(:job) }
it { expect(trace).to delegate_method(:old_trace).to(:job) }
end
context 'when live trace feature is disabled' do
before do
stub_feature_flags(ci_enable_live_trace: false)
end
it_behaves_like 'trace with disabled live trace feature'
end
context 'when live trace feature is enabled' do
before do
stub_feature_flags(ci_enable_live_trace: true)
end
it_behaves_like 'trace with enabled live trace feature'
end
end
|