diff options
Diffstat (limited to 'spec/serializers/build_entity_spec.rb')
-rw-r--r-- | spec/serializers/build_entity_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/serializers/build_entity_spec.rb b/spec/serializers/build_entity_spec.rb index 6dcfaec259e..1297f8a99b1 100644 --- a/spec/serializers/build_entity_spec.rb +++ b/spec/serializers/build_entity_spec.rb @@ -19,6 +19,10 @@ describe BuildEntity do expect(subject).not_to include(/token/) expect(subject).not_to include(/variables/) end + + it 'contains field which says it is not a manual job' do + expect(subject.fetch(:manual)).to be false + end end context 'when build is a manual action' do @@ -27,5 +31,9 @@ describe BuildEntity do it 'contains path to play action' do expect(subject).to include(:play_path) end + + it 'contains field which says it is manual job' do + expect(subject.fetch(:manual)).to be true + end end end |