summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-05 00:26:04 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-08-05 00:26:04 +0800
commitc245cb39854658290b9155f4c4041351259d509d (patch)
tree2191d5504731711abe5c76cf85cd2eb5a64e771d
parent984367f957c8f8d02fa82b08817e2f2f318c6bff (diff)
downloadgitlab-ce-c245cb39854658290b9155f4c4041351259d509d.tar.gz
Missed renaming them
-rw-r--r--spec/models/project_services/slack_service_spec.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/models/project_services/slack_service_spec.rb b/spec/models/project_services/slack_service_spec.rb
index 373ab8bd79e..8b15024de7b 100644
--- a/spec/models/project_services/slack_service_spec.rb
+++ b/spec/models/project_services/slack_service_spec.rb
@@ -197,7 +197,8 @@ describe SlackService, models: true do
it "uses the right channel" do
slack.update_attributes(note_channel: "random")
- note_data = Gitlab::NoteDataBuilder.build(issue_note, user)
+ note_data = Gitlab::DataBuilder::NoteDataBuilder.
+ build(issue_note, user)
expect(Slack::Notifier).to receive(:new).
with(webhook_url, channel: "random").
@@ -237,7 +238,7 @@ describe SlackService, models: true do
end
it "should call Slack API for commit comment events" do
- data = Gitlab::NoteDataBuilder.build(commit_note, user)
+ data = Gitlab::DataBuilder::NoteDataBuilder.build(commit_note, user)
slack.execute(data)
expect(WebMock).to have_requested(:post, webhook_url).once
@@ -251,7 +252,8 @@ describe SlackService, models: true do
end
it "should call Slack API for merge request comment events" do
- data = Gitlab::NoteDataBuilder.build(merge_request_note, user)
+ data = Gitlab::DataBuilder::NoteDataBuilder.
+ build(merge_request_note, user)
slack.execute(data)
expect(WebMock).to have_requested(:post, webhook_url).once
@@ -264,7 +266,7 @@ describe SlackService, models: true do
end
it "should call Slack API for issue comment events" do
- data = Gitlab::NoteDataBuilder.build(issue_note, user)
+ data = Gitlab::DataBuilder::NoteDataBuilder.build(issue_note, user)
slack.execute(data)
expect(WebMock).to have_requested(:post, webhook_url).once
@@ -278,7 +280,7 @@ describe SlackService, models: true do
end
it "should call Slack API for snippet comment events" do
- data = Gitlab::NoteDataBuilder.build(snippet_note, user)
+ data = Gitlab::DataBuilder::NoteDataBuilder.build(snippet_note, user)
slack.execute(data)
expect(WebMock).to have_requested(:post, webhook_url).once