Commit e228dae8 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix spec/workers/post_receive_spec.rb

parent 3e0a1346fe5a
......@@ -14,7 +14,7 @@
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 @@
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment