Commit 7dbcd777 authored by Valery Sizov's avatar Valery Sizov

ES: fix specs

parent bd08de14
...@@ -24,6 +24,7 @@ describe PostReceive do ...@@ -24,6 +24,7 @@ describe PostReceive do
it "triggers wiki index update" do it "triggers wiki index update" do
allow(Gitlab.config.elasticsearch).to receive(:enabled).and_return(true) allow(Gitlab.config.elasticsearch).to receive(:enabled).and_return(true)
expect(Project).to receive(:find_with_namespace).with(project.path_with_namespace).and_return(project) expect(Project).to receive(:find_with_namespace).with(project.path_with_namespace).and_return(project)
expect(Project).to receive(:find_with_namespace).with("#{project.path_with_namespace}.wiki").and_return(nil)
expect_any_instance_of(ProjectWiki).to receive(:index_blobs) expect_any_instance_of(ProjectWiki).to receive(:index_blobs)
repo_path = "#{pwd(project)}.wiki" repo_path = "#{pwd(project)}.wiki"
......
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