diff options
Diffstat (limited to 'spec/models/analytics/cycle_analytics/merge_request_stage_event_spec.rb')
-rw-r--r-- | spec/models/analytics/cycle_analytics/merge_request_stage_event_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/analytics/cycle_analytics/merge_request_stage_event_spec.rb b/spec/models/analytics/cycle_analytics/merge_request_stage_event_spec.rb index 82a7e66d62a..859b308eda6 100644 --- a/spec/models/analytics/cycle_analytics/merge_request_stage_event_spec.rb +++ b/spec/models/analytics/cycle_analytics/merge_request_stage_event_spec.rb @@ -9,5 +9,9 @@ RSpec.describe Analytics::CycleAnalytics::MergeRequestStageEvent do it { is_expected.to validate_presence_of(:project_id) } it { is_expected.to validate_presence_of(:start_event_timestamp) } + it 'has state enum' do + expect(described_class.states).to eq(MergeRequest.available_states) + end + it_behaves_like 'StageEventModel' end |