diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-08-11 14:40:03 +0000 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-08-16 12:28:24 -0500 |
commit | b562e64f9755a77ce9b0ebbd265d699800229d07 (patch) | |
tree | 2233d6e8e5d8246f657930599e432e2f01bd11cc /features | |
parent | f0b16acda3f72eab014a458b34cc411d7bdbccb6 (diff) | |
download | gitlab-ce-b562e64f9755a77ce9b0ebbd265d699800229d07.tar.gz |
Merge branch 'split-events-into-push-events' into 'master'
Use a separate table for storing push events
See merge request !12463
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/shared/project.rb | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/features/steps/shared/project.rb b/features/steps/shared/project.rb index 00f7cded2ae..605c9a3ab71 100644 --- a/features/steps/shared/project.rb +++ b/features/steps/shared/project.rb @@ -71,28 +71,14 @@ module SharedProject step 'project "Shop" has push event' do @project = Project.find_by(name: "Shop") - - data = { - before: Gitlab::Git::BLANK_SHA, - after: "6d394385cf567f80a8fd85055db1ab4c5295806f", - ref: "refs/heads/fix", - user_id: @user.id, - user_name: @user.name, - repository: { - name: @project.name, - url: "localhost/rubinius", - description: "", - homepage: "localhost/rubinius", - private: true - } - } - - @event = Event.create( - project: @project, - action: Event::PUSHED, - data: data, - author_id: @user.id - ) + @event = create(:push_event, project: @project, author: @user) + + create(:push_event_payload, + event: @event, + action: :created, + commit_to: '6d394385cf567f80a8fd85055db1ab4c5295806f', + ref: 'fix', + commit_count: 1) end step 'I should see project "Shop" activity feed' do |