diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-12-13 21:20:10 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-12-13 21:20:37 +0400 |
commit | e228dae8769d67e7539fd0bf1475d85c0244aa8d (patch) | |
tree | 01f95b15aae3716398c022fa943ad4482b79ab6f /spec/workers | |
parent | 1d156c9c8ee0d81370844d58c2863cb4b780489e (diff) |
Fix spec/workers/post_receive_spec.rb
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/post_receive_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/post_receive_spec.rb b/spec/workers/post_receive_spec.rb index 443c8c1a3c4..b0f554c52ab 100644 --- a/spec/workers/post_receive_spec.rb +++ b/spec/workers/post_receive_spec.rb @@ -14,7 +14,7 @@ describe PostReceive do let(:key_id) { key.identifier } it "fetches the correct project" do - Project.should_receive(:find_by_path).with(project.path_with_namespace).and_return(project) + Project.should_receive(:find_with_namespace).with(project.path_with_namespace).and_return(project) PostReceive.perform(pwd(project), 'sha-old', 'sha-new', 'refs/heads/master', key_id) end @@ -28,7 +28,7 @@ describe PostReceive do end it "asks the project to trigger all hooks" do - Project.stub(find_by_path: project) + Project.stub(find_with_namespace: project) project.should_receive(:execute_hooks) project.should_receive(:execute_services) project.should_receive(:update_merge_requests) |