diff options
author | Andrew Newdigate <andrew@gitlab.com> | 2017-07-18 10:59:36 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-07-18 10:59:36 +0300 |
commit | a89f18bf2c1421460fcb3f42aac538df51660912 (patch) | |
tree | ffc28c7ce8f730ba319552a61b784b8ada834050 /spec/lib/gitlab/gitaly_client/notification_service_spec.rb | |
parent | a8aae1bed0ccea3e1761973773b7dc684876a27e (diff) |
Renamed Gitaly services
Diffstat (limited to 'spec/lib/gitlab/gitaly_client/notification_service_spec.rb')
-rw-r--r-- | spec/lib/gitlab/gitaly_client/notification_service_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/lib/gitlab/gitaly_client/notification_service_spec.rb b/spec/lib/gitlab/gitaly_client/notification_service_spec.rb new file mode 100644 index 00000000000..d9597c4aa78 --- /dev/null +++ b/spec/lib/gitlab/gitaly_client/notification_service_spec.rb @@ -0,0 +1,17 @@ +require 'spec_helper' + +describe Gitlab::GitalyClient::NotificationService do + describe '#post_receive' do + let(:project) { create(:empty_project) } + let(:storage_name) { project.repository_storage } + let(:relative_path) { project.path_with_namespace + '.git' } + subject { described_class.new(project.repository) } + + it 'sends a post_receive message' do + expect_any_instance_of(Gitaly::NotificationService::Stub) + .to receive(:post_receive).with(gitaly_request_with_path(storage_name, relative_path), kind_of(Hash)) + + subject.post_receive + end + end +end |