[openstreetmap/openstreetmap-website] Allow admins and moderators to delete traces (#1734)

Biswesh Mohapatra notifications at github.com
Sun Feb 11 12:06:52 UTC 2018


I have trying to add the test case but it keeps on giving me this error:

Failure:
TraceControllerTest#test_delete [/Users/bisweshmohapatra/Desktop/gitHub/openstreetmap-website/test/controllers/trace_controller_test.rb:692]:

Expected response to be a <3XX: redirect>, but was a <404: Not Found>

But when I created a user and gave it admin role using UserRole model it was able to delete it. 
I haven't written any test case before. I have given my test case below. Can you look at it and tell me the mistake?

https://pastebin.com/9PqKXkkP

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1734#issuecomment-364746589
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180211/4b7af56d/attachment.html>


More information about the rails-dev mailing list