mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
Initial release of Discourse
This commit is contained in:
16
spec/controllers/search_controller_spec.rb
Normal file
16
spec/controllers/search_controller_spec.rb
Normal file
@ -0,0 +1,16 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe SearchController do
|
||||
|
||||
it 'performs the query' do
|
||||
Search.expects(:query).with('test', nil)
|
||||
xhr :get, :query, term: 'test'
|
||||
end
|
||||
|
||||
it 'performs the query with a filter' do
|
||||
Search.expects(:query).with('test', 'topic')
|
||||
xhr :get, :query, term: 'test', type_filter: 'topic'
|
||||
end
|
||||
|
||||
|
||||
end
|
Reference in New Issue
Block a user