diaspora/spec/integration/contact_deleting_spec.rb

16 lines
444 B
Ruby

# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
require 'spec_helper'
describe 'disconnecting a contact', :type => :request do
it 'removes the aspect membership' do
@user = alice
@user2 = bob
expect{
@user.disconnect(@user.contact_for(@user2.person))
}.to change(AspectMembership, :count).by(-1)
end
end