diff options
| author | David Turner <novalis@novalis.org> | 2017-05-10 13:31:12 -0400 |
|---|---|---|
| committer | David Turner <novalis@novalis.org> | 2017-05-10 17:11:36 -0400 |
| commit | 47b8516c15415e4111973fbc9a3a2782c1de3ed8 (patch) | |
| tree | ce6887b3ee70e2f533ee1af2f5bb4f9996af907b /spec/lib | |
| parent | bbd83376d625b8d9cb73cbc83c3c0eb71b1abf32 (diff) | |
| download | gitlab-ce-47b8516c15415e4111973fbc9a3a2782c1de3ed8.tar.gz | |
Add username field to push webhook
Signed-off-by: David Turner <novalis@novalis.org>
Diffstat (limited to 'spec/lib')
| -rw-r--r-- | spec/lib/gitlab/data_builder/push_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/lib/gitlab/data_builder/push_spec.rb b/spec/lib/gitlab/data_builder/push_spec.rb index dbcfb9b7400..e59cba35b2f 100644 --- a/spec/lib/gitlab/data_builder/push_spec.rb +++ b/spec/lib/gitlab/data_builder/push_spec.rb @@ -35,6 +35,7 @@ describe Gitlab::DataBuilder::Push, lib: true do it { expect(data[:ref]).to eq('refs/tags/v1.1.0') } it { expect(data[:user_id]).to eq(user.id) } it { expect(data[:user_name]).to eq(user.name) } + it { expect(data[:user_username]).to eq(user.username) } it { expect(data[:user_email]).to eq(user.email) } it { expect(data[:user_avatar]).to eq(user.avatar_url) } it { expect(data[:project_id]).to eq(project.id) } |
