Skip to content

Commit

Permalink
Delete both in order for it to be the last one
Browse files Browse the repository at this point in the history
  • Loading branch information
cesy committed May 1, 2017
1 parent f124487 commit 4ddf031
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/controllers/serial_works_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

it "redirects to user when destroying last one" do
fake_login_known_user(user)
delete :destroy, id: first_work.id
delete :destroy, id: second_work.id
# it doesn't give you any success message - this might be worth improving in future
it_redirects_to(user_path(user))
Expand Down

0 comments on commit 4ddf031

Please sign in to comment.