[Git][noosfero/noosfero][master] api: revert test fix that break on gitlab ci
Bráulio Bhavamitra
gitlab at mg.gitlab.com
Mon Mar 6 19:15:25 BRT 2017
Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero
Commits:
3a134694 by Braulio Bhavamitra at 2017-03-06T19:14:59-03:00
api: revert test fix that break on gitlab ci
- - - - -
1 changed file:
- app/api/v1/articles.rb
Changes:
=====================================
app/api/v1/articles.rb
=====================================
--- a/app/api/v1/articles.rb
+++ b/app/api/v1/articles.rb
@@ -59,7 +59,7 @@ module Api
return forbidden! unless article.allow_delete?(current_person)
begin
article.destroy
- { success: true }.to_json
+ { success: true }
rescue Exception => exception
render_api_error!(_('The article couldn\'t be removed due to some problem. Please contact the administrator.'), Api::Status::BAD_REQUEST)
end
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/3a134694d93126a05f8bd8d23f0103631c3b3db5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170306/509f7371/attachment-0001.html>
More information about the Noosfero-dev
mailing list