summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-08-11 14:40:03 +0000
committerJose Ivan Vargas <jvargas@gitlab.com>2017-08-11 10:40:34 -0500
commit75dffc45d90391d09ba320605d6c7a6ec7dd8a18 (patch)
treee8aea311f99c3583be2aca05b49439de7640acb6 /features
parent2d6663daddaad0ba0e4ad0c0b71ea6b0225d70fc (diff)
downloadgitlab-ce-75dffc45d90391d09ba320605d6c7a6ec7dd8a18.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.rb30
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