Commit 421ba4aa authored by Nick Thomas's avatar Nick Thomas

Ensure the EE hooks can't break again

parent 971401b9
require 'spec_helper'
describe Search::GlobalService do
let(:user) { create(:user) }
describe 'elasticsearch' do
before do
stub_ee_application_setting(elasticsearch_search: true, elasticsearch_indexing: true)
end
subject(:results) { described_class.new(user, search: '*').execute }
it { is_expected.to be_a(::Gitlab::Elastic::SearchResults) }
end
end
......@@ -54,4 +54,17 @@ describe Search::GroupService do
include_examples 'group search'
end
describe 'elasticsearch result' do
let(:user) { create(:user) }
let(:group) { create(:group) }
before do
stub_ee_application_setting(elasticsearch_search: true, elasticsearch_indexing: true)
end
subject(:results) { described_class.new(user, group, search: '*').execute }
it { is_expected.to be_a(::Gitlab::Elastic::GroupSearchResults) }
end
end
require 'spec_helper'
describe Search::ProjectService do
let(:project) { create(:project) }
let(:user) { project.owner }
describe 'elasticsearch' do
before do
stub_ee_application_setting(elasticsearch_search: true, elasticsearch_indexing: true)
end
subject(:results) { described_class.new(project, user, search: '*').execute }
it { is_expected.to be_a(::Gitlab::Elastic::ProjectSearchResults) }
end
end
require 'spec_helper'
describe Search::SnippetService do
let(:user) { create(:user) }
describe 'elasticsearch' do
before do
stub_ee_application_setting(elasticsearch_search: true, elasticsearch_indexing: true)
end
subject(:results) { described_class.new(user, search: '*').execute }
it { is_expected.to be_a(::Gitlab::Elastic::SnippetSearchResults) }
end
end
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