gitlab-org--gitlab-foss/spec/lib/gitlab/gitaly_client/notifications_spec.rb
2017-03-29 14:48:05 +02:00

13 lines
422 B
Ruby

require 'spec_helper'
describe Gitlab::GitalyClient::Notifications do
describe '#post_receive' do
it 'sends a post_receive message' do
repo_path = create(:empty_project).repository.path_to_repo
expect_any_instance_of(Gitaly::Notifications::Stub).
to receive(:post_receive).with(post_receive_request_with_repo_path(repo_path))
described_class.new(repo_path).post_receive
end
end
end