mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
override search term length for topic id spec
This commit is contained in:
parent
79c109a819
commit
fcbb9919b6
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ describe Search do
|
|||
end
|
||||
|
||||
context "search for a topic by id" do
|
||||
let(:result) { first_of_type(Search.new(topic.id, type_filter: 'topic').execute, 'topic') }
|
||||
let(:result) { first_of_type(Search.new(topic.id, type_filter: 'topic', min_search_term_length: 1).execute, 'topic') }
|
||||
|
||||
it 'returns the topic' do
|
||||
result.should be_present
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue