mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
fix spec
This commit is contained in:
@ -3,12 +3,12 @@ require 'spec_helper'
|
||||
describe SearchController do
|
||||
|
||||
it 'performs the query' do
|
||||
Search.expects(:query).with('test', nil, 3)
|
||||
Search.expects(:query).with('test', nil, nil, 3)
|
||||
xhr :get, :query, term: 'test'
|
||||
end
|
||||
|
||||
it 'performs the query with a filter' do
|
||||
Search.expects(:query).with('test', 'topic', 3)
|
||||
Search.expects(:query).with('test', nil, 'topic', 3)
|
||||
xhr :get, :query, term: 'test', type_filter: 'topic'
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user