Commit 4bf9d21491b161275deeed0625d27245f11bb1e8
1 parent
b1f0622e
Exists in
master
trying to fix a test
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
controllers/email_article_plugin_myprofile_controller.rb
| ... | ... | @@ -6,7 +6,9 @@ class EmailArticlePluginMyprofileController < MyProfileController |
| 6 | 6 | if user.is_admin?(profile) |
| 7 | 7 | article = Article.find(params[:id]) |
| 8 | 8 | EmailArticlePluginMyprofileController::Sender.deliver_mail(article) |
| 9 | - render :text=>'ok' | |
| 9 | + render :action => 'success' | |
| 10 | + else | |
| 11 | + render :action => 'fail' | |
| 10 | 12 | end |
| 11 | 13 | end |
| 12 | 14 | ... | ... |