Commit 207dbacaf7eefe852adcd0e44ff53905921b5702
1 parent
d2d7d665
Exists in
master
and in
22 other branches
rails3: fix suggest_article tests
Showing
1 changed file
with
11 additions
and
11 deletions
Show diff stats
app/models/suggest_article.rb
| @@ -17,17 +17,17 @@ class SuggestArticle < Task | @@ -17,17 +17,17 @@ class SuggestArticle < Task | ||
| 17 | end | 17 | end |
| 18 | 18 | ||
| 19 | def perform | 19 | def perform |
| 20 | - TinyMceArticle.create!( | ||
| 21 | - :profile => target, | ||
| 22 | - :name => article_name, | ||
| 23 | - :author_name => name, | ||
| 24 | - :body => article_body, | ||
| 25 | - :abstract => article_abstract, | ||
| 26 | - :parent_id => article_parent_id, | ||
| 27 | - :source => source, | ||
| 28 | - :source_name => source_name, | ||
| 29 | - :highlighted => highlighted | ||
| 30 | - ) | 20 | + task = TinyMceArticle.new |
| 21 | + task.profile = target | ||
| 22 | + task.name = article_name | ||
| 23 | + task.author_name = name | ||
| 24 | + task.body = article_body | ||
| 25 | + task.abstract = article_abstract | ||
| 26 | + task.parent_id = article_parent_id | ||
| 27 | + task.source = source | ||
| 28 | + task.source_name = source_name | ||
| 29 | + task.highlighted = highlighted | ||
| 30 | + task.save! | ||
| 31 | end | 31 | end |
| 32 | 32 | ||
| 33 | def title | 33 | def title |