|
|
|
@ -615,7 +615,7 @@ describe Admin::OrganizationUsersController do
|
|
|
|
|
@user.destroy if @user
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'owner cannot enable soft limits if he has not' do
|
|
|
|
|
it 'owner cannot enable soft limits if she/he has not' do
|
|
|
|
|
old_limits = update_soft_limits(@org_user_owner, false)
|
|
|
|
|
|
|
|
|
|
post create_organization_user_url(user_domain: @org_user_owner.username),
|
|
|
|
@ -628,7 +628,7 @@ describe Admin::OrganizationUsersController do
|
|
|
|
|
update_soft_limits(@org_user_owner, old_limits)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'owner cannot enable geocoding limit if he has not' do
|
|
|
|
|
it 'owner cannot enable geocoding limit if she/he has not' do
|
|
|
|
|
old_limits = update_soft_limits(@org_user_owner, false)
|
|
|
|
|
|
|
|
|
|
post create_organization_user_url(user_domain: @org_user_owner.username),
|
|
|
|
@ -656,7 +656,7 @@ describe Admin::OrganizationUsersController do
|
|
|
|
|
update_soft_limits(@org_user_owner, old_limits)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'owner can enable soft limits if he has' do
|
|
|
|
|
it 'owner can enable soft limits if she/he has' do
|
|
|
|
|
old_limits = update_soft_limits(@org_user_owner, true)
|
|
|
|
|
|
|
|
|
|
post create_organization_user_url(user_domain: @org_user_owner.username),
|
|
|
|
@ -676,7 +676,7 @@ describe Admin::OrganizationUsersController do
|
|
|
|
|
::User[@existing_user.id].destroy if @existing_user
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'owner cannot enable soft limits if he has not' do
|
|
|
|
|
it 'owner cannot enable soft limits if she/he has not' do
|
|
|
|
|
old_limits = update_soft_limits(@org_user_owner, false)
|
|
|
|
|
check_soft_limits(@carto_org_user_owner, false)
|
|
|
|
|
@existing_user = FactoryGirl.create(:carto_user,
|
|
|
|
@ -692,7 +692,7 @@ describe Admin::OrganizationUsersController do
|
|
|
|
|
update_soft_limits(@org_user_owner, old_limits)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'owner can enable soft limits if he has' do
|
|
|
|
|
it 'owner can enable soft limits if she/he has' do
|
|
|
|
|
old_limits = update_soft_limits(@org_user_owner, true)
|
|
|
|
|
@existing_user = FactoryGirl.create(:carto_user,
|
|
|
|
|
soft_limits_params(false).merge(organization: @carto_organization))
|
|
|
|
@ -707,7 +707,7 @@ describe Admin::OrganizationUsersController do
|
|
|
|
|
update_soft_limits(@org_user_owner, old_limits)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'owner can disable soft limits if he has' do
|
|
|
|
|
it 'owner can disable soft limits if she/he has' do
|
|
|
|
|
old_limits = update_soft_limits(@org_user_owner, true)
|
|
|
|
|
@existing_user = FactoryGirl.create(:carto_user,
|
|
|
|
|
soft_limits_params(true).merge(organization: @carto_organization))
|
|
|
|
|