Fix participations controller spec
This commit is contained in:
parent
95053ccbf2
commit
93c9ad6eba
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ describe ParticipationsController, :type => :controller do
|
||||||
it 'should remove participation' do
|
it 'should remove participation' do
|
||||||
delete :destroy, post_id: post.id
|
delete :destroy, post_id: post.id
|
||||||
expect(alice.participations.where(:target_id => post.id)).not_to exist
|
expect(alice.participations.where(:target_id => post.id)).not_to exist
|
||||||
expect(response.code).to eq('204')
|
expect(response.code).to eq('200')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue