diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-02 12:11:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-02 12:11:35 +0300 |
commit | ed0d55ded7a03c8d5da501d3c86b38084f695cae (patch) | |
tree | 8612868b90f496a1dacc29c1a7a78cd7d380a26b /spec/models/analytics | |
parent | 951a32fcf3fc8766eae1430a389b77049410c371 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/analytics')
-rw-r--r-- | spec/models/analytics/cycle_analytics/issue_stage_event_spec.rb | 11 | ||||
-rw-r--r-- | spec/models/analytics/cycle_analytics/merge_request_stage_event_spec.rb | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/spec/models/analytics/cycle_analytics/issue_stage_event_spec.rb b/spec/models/analytics/cycle_analytics/issue_stage_event_spec.rb new file mode 100644 index 00000000000..3e6d4ebd0a2 --- /dev/null +++ b/spec/models/analytics/cycle_analytics/issue_stage_event_spec.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe Analytics::CycleAnalytics::IssueStageEvent do + it { is_expected.to validate_presence_of(:stage_event_hash_id) } + it { is_expected.to validate_presence_of(:issue_id) } + it { is_expected.to validate_presence_of(:group_id) } + it { is_expected.to validate_presence_of(:project_id) } + it { is_expected.to validate_presence_of(:start_event_timestamp) } +end 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 new file mode 100644 index 00000000000..244c5c70286 --- /dev/null +++ b/spec/models/analytics/cycle_analytics/merge_request_stage_event_spec.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe Analytics::CycleAnalytics::MergeRequestStageEvent do + it { is_expected.to validate_presence_of(:stage_event_hash_id) } + it { is_expected.to validate_presence_of(:merge_request_id) } + it { is_expected.to validate_presence_of(:group_id) } + it { is_expected.to validate_presence_of(:project_id) } + it { is_expected.to validate_presence_of(:start_event_timestamp) } +end |