| ... | ... | @@ -2,7 +2,7 @@ require 'spec_helper' |
|
|
|
|
|
|
|
describe Gitlab::DataBuilder::Push do
|
|
|
|
let(:project) { create(:project, :repository) }
|
|
|
|
let(:user) { create(:user) }
|
|
|
|
let(:user) { build(:user, public_email: 'public-email@example.com') }
|
|
|
|
|
|
|
|
describe '.build_sample' do
|
|
|
|
let(:data) { described_class.build_sample(project, user) }
|
| ... | ... | @@ -36,7 +36,7 @@ describe Gitlab::DataBuilder::Push do |
|
|
|
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_email]).to eq(user.public_email) }
|
|
|
|
it { expect(data[:user_avatar]).to eq(user.avatar_url) }
|
|
|
|
it { expect(data[:project_id]).to eq(project.id) }
|
|
|
|
it { expect(data[:project]).to be_a(Hash) }
|
| ... | ... | |
| ... | ... | |