autocomplete_test.rb revision 38dab3b63e2730b443590a53de93e085659efe25
require 'test_helper'
context 'for users and teams' do
setup do
# should never be found
end
context 'searching for user' do
# two results
context 'foo' do
setup do
end
should 'find two users' do
end
end
# one result
context 'foobar' do
context 'by name' do
setup do
end
should 'find the user' do
end
end
context 'by email' do
setup do
end
should 'find the user' do
end
end
end
# no results
context 'baz' do
setup do
end
should 'not found any users' do
end
end
end
context 'searching user and team' do
# 1 user + 1 team
context 'bar' do
setup do
end
should 'get two results' do
end
should 'find the user' do
end
should 'find the team' do
end
end
# 1 team
context 'faker' do
setup do
end
should 'find the team' do
end
end
end
end
context 'autocomplete with exclusion' do
setup do
end
should "only find 3 users" do
end
end
end
end