diff options
author | Stan Hu <stanhu@gmail.com> | 2017-08-11 23:22:20 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-08-11 23:22:20 -0700 |
commit | 07f8105f9786493d327716026a37875f7c7ef0d6 (patch) | |
tree | d417d106e27b831e7c26bd44377af877c41a7e5f /spec/features/dashboard | |
parent | 7b70d01279ea7de784b63ce41c52d460b93afbf9 (diff) | |
parent | 2b950014c35534c817c58ebf43dcbf4bbf490b9e (diff) | |
download | gitlab-ce-07f8105f9786493d327716026a37875f7c7ef0d6.tar.gz |
Merge branch 'master' into sh-headless-chrome-support
Diffstat (limited to 'spec/features/dashboard')
-rw-r--r-- | spec/features/dashboard/activity_spec.rb | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/spec/features/dashboard/activity_spec.rb b/spec/features/dashboard/activity_spec.rb index 4917dfcf1d1..582868bac1e 100644 --- a/spec/features/dashboard/activity_spec.rb +++ b/spec/features/dashboard/activity_spec.rb @@ -23,27 +23,19 @@ feature 'Dashboard > Activity' do create(:merge_request, author: user, source_project: project, target_project: project) end - let(:push_event_data) do - { - before: Gitlab::Git::BLANK_SHA, - after: '0220c11b9a3e6c69dc8fd35321254ca9a7b98f7e', - ref: 'refs/heads/new_design', - user_id: user.id, - user_name: user.name, - repository: { - name: project.name, - url: 'localhost/rubinius', - description: '', - homepage: 'localhost/rubinius', - private: true - } - } - end - let(:note) { create(:note, project: project, noteable: merge_request) } let!(:push_event) do - create(:event, :pushed, data: push_event_data, project: project, author: user) + event = create(:push_event, project: project, author: user) + + create(:push_event_payload, + event: event, + action: :created, + commit_to: '0220c11b9a3e6c69dc8fd35321254ca9a7b98f7e', + ref: 'new_design', + commit_count: 1) + + event end let!(:merged_event) do |