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,7 +6,9 @@ class EmailArticlePluginMyprofileController < MyProfileController | ||
6 | if user.is_admin?(profile) | 6 | if user.is_admin?(profile) |
7 | article = Article.find(params[:id]) | 7 | article = Article.find(params[:id]) |
8 | EmailArticlePluginMyprofileController::Sender.deliver_mail(article) | 8 | EmailArticlePluginMyprofileController::Sender.deliver_mail(article) |
9 | - render :text=>'ok' | 9 | + render :action => 'success' |
10 | + else | ||
11 | + render :action => 'fail' | ||
10 | end | 12 | end |
11 | end | 13 | end |
12 | 14 |