Remove min_posts_for_search_in_topic

no longer needed, we always search in topic
This commit is contained in:
Sam
2014-06-10 15:05:40 +10:00
parent 383f0290a4
commit a044e3de58
15 changed files with 0 additions and 31 deletions

View File

@ -138,8 +138,6 @@ describe Search do
it 'displays multiple results within a topic' do
SiteSetting.stubs(:min_posts_for_search_in_topic).returns(3)
topic = Fabricate(:topic)
topic2 = Fabricate(:topic)
@ -167,14 +165,6 @@ describe Search do
"_#{post4.id}",
topic2.id]
# trigger expanded search
results = Search.new('birds', search_context: post1.topic).execute
SiteSetting.stubs(:min_posts_for_search_in_topic).returns(10)
results = Search.new('posting', search_context: post1.topic).execute.find do |r|
r[:type] == "topic"
end[:results].length.should == 2
end
end