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:
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)