Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-18 14:18:50 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-18 14:18:50 +0300
commit8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781 (patch)
treea77e7fe7a93de11213032ed4ab1f33a3db51b738 /spec/models/push_event_spec.rb
parent00b35af3db1abfe813a778f643dad221aad51fca (diff)
Add latest changes from gitlab-org/gitlab@13-1-stable-ee
Diffstat (limited to 'spec/models/push_event_spec.rb')
-rw-r--r--spec/models/push_event_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/push_event_spec.rb b/spec/models/push_event_spec.rb
index 8682e1c797b..5c1802669c1 100644
--- a/spec/models/push_event_spec.rb
+++ b/spec/models/push_event_spec.rb
@@ -118,8 +118,8 @@ describe PushEvent do
end
describe '.sti_name' do
- it 'returns Event::PUSHED' do
- expect(described_class.sti_name).to eq(Event::PUSHED)
+ it 'returns the integer representation of the :pushed event action' do
+ expect(described_class.sti_name).to eq(Event.actions[:pushed])
end
end
@@ -299,7 +299,7 @@ describe PushEvent do
describe '#validate_push_action' do
it 'adds an error when the action is not PUSHED' do
- event.action = Event::CREATED
+ event.action = :created
event.validate_push_action
expect(event.errors.count).to eq(1)