autocomplete_test.rb revision acf37010abb588969e6843692a367f6be73e30cd
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 1 team
context 'faker' do
setup do
end
should 'find the team' do
end
end
end
end
end
end