This repository has been archived on 2023-03-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
osr-discourse-src/spec/controllers/search_controller_spec.rb
T
2013-03-07 16:52:01 +01:00

16 lines
335 B
Ruby

require 'spec_helper'
describe SearchController do
it 'performs the query' do
Search.expects(:query).with('test', nil, 3)
xhr :get, :query, term: 'test'
end
it 'performs the query with a filter' do
Search.expects(:query).with('test', 'topic', 3)
xhr :get, :query, term: 'test', type_filter: 'topic'
end
end