diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-09-07 15:33:54 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-09-07 15:33:54 +0000 |
commit | 4ae8e20c9c860e5d5d6a148e9f4ee0ae7b8c8946 (patch) | |
tree | 144ea90151a00341311f0369400a572d7280e147 /features | |
parent | b5e29a47e00e28cbb941dfec273b0e92d1a6593a (diff) | |
parent | 2c3652af139ad86d6540544301b5ce366d1467e6 (diff) | |
download | gitlab-ce-4ae8e20c9c860e5d5d6a148e9f4ee0ae7b8c8946.tar.gz |
Merge branch 'events-migration-cleanup' into 'master'
Finish migration to the new events setup
Closes #37241
See merge request !13932
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/user.rb | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/features/steps/user.rb b/features/steps/user.rb index 59385a6ab59..321c1e942d5 100644 --- a/features/steps/user.rb +++ b/features/steps/user.rb @@ -17,14 +17,9 @@ class Spinach::Features::User < Spinach::FeatureSteps Issues::CreateService.new(project, user, issue_params).execute # Push code contribution - push_params = { - project: project, - action: Event::PUSHED, - author_id: user.id, - data: { commit_count: 3 } - } - - Event.create(push_params) + event = create(:push_event, project: project, author: user) + + create(:push_event_payload, event: event, commit_count: 3) end step 'I should see contributed projects' do @@ -38,6 +33,6 @@ class Spinach::Features::User < Spinach::FeatureSteps end def contributed_project - @contributed_project ||= create(:project, :public) + @contributed_project ||= create(:project, :public, :empty_repo) end end |