make aspect membership controller specs green

This commit is contained in:
Jonne Haß 2013-09-21 20:35:19 +02:00
parent ceee5baae6
commit 244388fcb5
2 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ class AspectMembershipsController < ApplicationController
flash.now[:error] = I18n.t 'aspect_memberships.destroy.failure'
end
respond_with do |format|
respond_to do |format|
format.json do
if success
render :json => {

View file

@ -90,7 +90,7 @@ describe AspectMembershipsController do
delete :destroy, :format => :json, :id => membership.id
response.should be_success
@aspect1.reload
@aspect1.contacts.include?(@contact).should be false
@aspect1.contacts.to_a.should_not include @contact
end
it 'does not 500 on an html request' do
@ -98,7 +98,7 @@ describe AspectMembershipsController do
delete :destroy, :id => membership.id
response.should redirect_to :back
@aspect1.reload
@aspect1.contacts.include?(@contact).should be false
@aspect1.contacts.to_a.should_not include @contact
end
it 'aspect membership does not exist' do