make aspect membership controller specs green
This commit is contained in:
parent
ceee5baae6
commit
244388fcb5
2 changed files with 3 additions and 3 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue