team_users_controller_test.rb revision d62eba79f306957dd89ea9d3313600e98e2a8beb
require 'test_helper'
:as => 'users',
context 'teams' do
setup do
:admin_user => @admin
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