diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-11-02 14:52:34 +0300 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-11-02 14:52:34 +0300 |
commit | cb0b16ebf6a56cd4cad8bdb8c7e915a3b75d6e10 (patch) | |
tree | 0c09cc93f4cd2035a8e29c9e536c93afc1176b59 /spec/serializers/build_action_entity_spec.rb | |
parent | 74c79123248f35db64db2a6612a2794810f555db (diff) |
Add scheduled flag to job entity
Diffstat (limited to 'spec/serializers/build_action_entity_spec.rb')
-rw-r--r-- | spec/serializers/build_action_entity_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/serializers/build_action_entity_spec.rb b/spec/serializers/build_action_entity_spec.rb index 9e2bee2ee60..ea88951ebc6 100644 --- a/spec/serializers/build_action_entity_spec.rb +++ b/spec/serializers/build_action_entity_spec.rb @@ -26,6 +26,10 @@ describe BuildActionEntity do context 'when job is scheduled' do let(:job) { create(:ci_build, :scheduled) } + it 'returns scheduled' do + expect(subject[:scheduled]).to be_truthy + end + it 'returns scheduled_at' do expect(subject[:scheduled_at]).to eq(job.scheduled_at) end |