Skip to content
代码片段 群组 项目
提交 8a37f83b 编辑于 作者: Valery Sizov's avatar Valery Sizov
浏览文件

spec for Elastic::Indexer

上级 2c627a51
No related branches found
No related tags found
无相关合并请求
require 'spec_helper'
describe "Indexer" do
it "runs commands" do
expect(Gitlab::Popen).to receive(:popen).with(
array_including('bin/elastic_repo_indexer', '1', 'full_repo_path'),
nil,
hash_including(
'ELASTIC_CONNECTION_INFO' => {
host: Gitlab.config.elasticsearch.host,
port: Gitlab.config.elasticsearch.port
}.to_json,
'RAILS_ENV' => Rails.env,
'FROM_SHA' => '000000',
'TO_SHA' => '1d1f2d'
)
).and_return([[''], 0])
Elastic::Indexer.new.run(1, 'full_repo_path', '000000', '1d1f2d')
end
end
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册