Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [booked, collected].each do |deletable_booking|
- expect(page).to have_link('Delete', href: booking_path(deletable_booking))
- end
- [ironed, delivered].each do |non_deletable_booking|
- expect(page).not_to have_link('Delete', href: booking_path(non_deletable_booking))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement