diff options
Diffstat (limited to 'spec/gitlab_post_receive_spec.rb')
-rw-r--r-- | spec/gitlab_post_receive_spec.rb | 3 |
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 |