summaryrefslogtreecommitdiff
path: root/spec/workers/post_receive_spec.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-25 23:16:34 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-25 23:16:34 +0200
commitc9b1df1201dccded5fdfb4835209af9c0f258c55 (patch)
tree664f26ffef5decc62bf4f108edb5844c30acfba7 /spec/workers/post_receive_spec.rb
parent39fe9b644f200d4eeee30d4bc43486d177fd9b03 (diff)
downloadgitlab-ce-c9b1df1201dccded5fdfb4835209af9c0f258c55.tar.gz
Fixing tests
Diffstat (limited to 'spec/workers/post_receive_spec.rb')
-rw-r--r--spec/workers/post_receive_spec.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/spec/workers/post_receive_spec.rb b/spec/workers/post_receive_spec.rb
index d38cd59efa7..a4751bd0baf 100644
--- a/spec/workers/post_receive_spec.rb
+++ b/spec/workers/post_receive_spec.rb
@@ -21,7 +21,6 @@ describe PostReceive do
it "does not run if the author is not in the project" do
Key.stub(find_by_id: nil)
- project.should_not_receive(:observe_push)
project.should_not_receive(:execute_hooks)
PostReceive.new.perform(pwd(project), 'sha-old', 'sha-new', 'refs/heads/master', key_id).should be_false
@@ -32,7 +31,6 @@ describe PostReceive do
project.should_receive(:execute_hooks)
project.should_receive(:execute_services)
project.should_receive(:update_merge_requests)
- project.should_receive(:observe_push)
PostReceive.new.perform(pwd(project), 'sha-old', 'sha-new', 'refs/heads/master', key_id)
end