team_users_controller_test.rb revision 6d67b58472abc76a1d0d68a1d1fa32a45dc6626a
require 'test_helper'
:as => 'users',
context 'teams' do
setup do
:admin_user => @admin
end
context 'on GET to index' do
context 'as admin' do
setup do
end
end
context 'as user' do
setup do
end
should 'not get index' do
end
end
end
end
context 'adding a user' do
context 'by admin' do
setup do
end
end
end
context 'with one user' do
context 'removing the last user' do
setup do
end
should 'return a helpful error message' do
end
end
end
context 'with two users' do
setup do
end
context 'setting the admin flag' do
setup do
:id => @team_user.id,
end
end
context 'team admin deleting other user' do
setup do
:id => @team_user.id
end
end
context 'other user deleting team admin' do
setup do
end
should 'throw not found exception' do
end
end
end
end
end
end