diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-08-12 11:09:29 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-08-12 11:09:29 +0300 |
commit | d5264e8804bca70e613c418a9d346f5787c6fc7a (patch) | |
tree | 85097c38c14d79172af6f85628086d0c35b00cd9 /spec/workers/emails_on_push_worker_spec.rb | |
parent | 0a20897bbee538761352595e8f632c747b6d1b35 (diff) |
Simplify the name for data builder, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13671791
Diffstat (limited to 'spec/workers/emails_on_push_worker_spec.rb')
-rw-r--r-- | spec/workers/emails_on_push_worker_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/workers/emails_on_push_worker_spec.rb b/spec/workers/emails_on_push_worker_spec.rb index 1ecc594c311..eecc32875a5 100644 --- a/spec/workers/emails_on_push_worker_spec.rb +++ b/spec/workers/emails_on_push_worker_spec.rb @@ -5,9 +5,7 @@ describe EmailsOnPushWorker do let(:project) { create(:project) } let(:user) { create(:user) } - let(:data) do - Gitlab::DataBuilder::PushDataBuilder.build_sample(project, user) - end + let(:data) { Gitlab::DataBuilder::Push.build_sample(project, user) } let(:recipients) { user.email } let(:perform) { subject.perform(project.id, recipients, data.stringify_keys) } |