fixed spec

This commit is contained in:
MrZYX 2011-03-27 00:23:14 +01:00
parent b689d4695b
commit 3a5f8d814d

View file

@ -41,7 +41,7 @@ describe AspectMembershipsController do
delete :destroy, delete :destroy,
:format => 'js', :id => 123, :format => 'js', :id => 123,
:person_id => @user2.person.id, :person_id => @user2.person.id,
:aspect_id => @aspect0.id :id => @aspect0.id
response.should be_success response.should be_success
@aspect0.reload @aspect0.reload
@aspect0.contacts.include?(@contact).should be false @aspect0.contacts.include?(@contact).should be false
@ -52,7 +52,7 @@ describe AspectMembershipsController do
delete :destroy, delete :destroy,
:format => 'js', :id => 123, :format => 'js', :id => 123,
:person_id => 4324525, :person_id => 4324525,
:aspect_id => @aspect0.id :id => @aspect0.id
response.should_not be_success response.should_not be_success
response.body.should include "Could not find the selected person in that aspect" response.body.should include "Could not find the selected person in that aspect"
end end
@ -71,7 +71,7 @@ describe AspectMembershipsController do
delete :destroy, delete :destroy,
:format => 'js', :id => 123, :format => 'js', :id => 123,
:person_id => @user2.person.id, :person_id => @user2.person.id,
:aspect_id => @aspect0.id :id => @aspect0.id
response.should_not be_success response.should_not be_success
response.body.should include "Cannot remove person from last aspect" response.body.should include "Cannot remove person from last aspect"
end end