Commit 077e328a authored by Valery Sizov's avatar Valery Sizov

One more spec for ES idexer

parent 8d0bb584
......@@ -134,6 +134,22 @@ describe GitPushService, services: true do
end
end
describe "ES indexing" do
before do
allow(Gitlab.config.elasticsearch).to receive(:enabled).and_return(true)
end
after do
allow(Gitlab.config.elasticsearch).to receive(:enabled).and_return(false)
end
it "triggers indexer" do
expect_any_instance_of(Elastic::Indexer).to receive(:run)
service = execute_service(project, user, @oldrev, @newrev, @ref )
end
end
describe "Push Event" do
before do
service = execute_service(project, user, @oldrev, @newrev, @ref )
......
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