summaryrefslogtreecommitdiff
path: root/spec/serializers/job_entity_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/serializers/job_entity_spec.rb')
-rw-r--r--spec/serializers/job_entity_spec.rb16
1 files changed, 14 insertions, 2 deletions
diff --git a/spec/serializers/job_entity_spec.rb b/spec/serializers/job_entity_spec.rb
index 02262be9511..1cbf1914c0c 100644
--- a/spec/serializers/job_entity_spec.rb
+++ b/spec/serializers/job_entity_spec.rb
@@ -45,7 +45,7 @@ RSpec.describe JobEntity do
context 'when job is retryable' do
before do
- job.update(status: :failed)
+ job.update!(status: :failed)
end
it 'contains cancel path' do
@@ -55,7 +55,7 @@ RSpec.describe JobEntity do
context 'when job is cancelable' do
before do
- job.update(status: :running)
+ job.update!(status: :running)
end
it 'contains cancel path' do
@@ -218,4 +218,16 @@ RSpec.describe JobEntity do
expect(subject).not_to include('recoverable')
end
end
+
+ context 'when job is a bridge' do
+ let(:job) { create(:ci_bridge) }
+
+ it 'does not include build path' do
+ expect(subject).not_to include(:build_path)
+ end
+
+ it 'does not include cancel path' do
+ expect(subject).not_to include(:cancel_path)
+ end
+ end
end