summaryrefslogtreecommitdiff
path: root/spec/gitlab_post_receive_spec.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-07 17:00:21 +0100
committerDouwe Maan <douwe@gitlab.com>2015-02-09 23:38:42 +0100
commit1da7d54ee549ffd54ce8f8df37caeee30badcce4 (patch)
treecc58a19ce8482e054479a50309ea8aaebcc0db20 /spec/gitlab_post_receive_spec.rb
parent6d23be22d907ad8328169d36712ea36d36107b93 (diff)
downloadgitlab-shell-1da7d54ee549ffd54ce8f8df37caeee30badcce4.tar.gz
Print broadcast message if one is available.
Diffstat (limited to 'spec/gitlab_post_receive_spec.rb')
-rw-r--r--spec/gitlab_post_receive_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/gitlab_post_receive_spec.rb b/spec/gitlab_post_receive_spec.rb
index 50c6f0a..dc84e4a 100644
--- a/spec/gitlab_post_receive_spec.rb
+++ b/spec/gitlab_post_receive_spec.rb
@@ -9,10 +9,13 @@ describe GitlabPostReceive do
before do
GitlabConfig.any_instance.stub(repos_path: repository_path)
+ Kernel.stub(system: true)
+ GitlabNet.any_instance.stub(broadcast_message: { "message" => "test " * 10 + "message " * 10 })
end
describe :initialize do
it { gitlab_post_receive.repo_path.should == repo_path }
it { gitlab_post_receive.changes.should == 'wow' }
+ it { gitlab_post_receive.exec }
end
end