summaryrefslogtreecommitdiffstats
path: root/test/unit/news_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-16 10:30:45 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-16 10:30:45 +0000
commit57afa5345eea60c47b4fc44e86f32e73a202d860 (patch)
treee60a1fc76597f4648fff91c80c0abc9be8da18a6 /test/unit/news_test.rb
parentd3d62f4ded2a8c8738451e58d81df27a71a6842f (diff)
downloadredmine-57afa5345eea60c47b4fc44e86f32e73a202d860.tar.gz
redmine-57afa5345eea60c47b4fc44e86f32e73a202d860.zip
Don't pass conditions to #delete_all.
git-svn-id: http://svn.redmine.org/redmine/trunk@15675 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/news_test.rb')
-rw-r--r--test/unit/news_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/news_test.rb b/test/unit/news_test.rb
index d97233be5..825a47260 100644
--- a/test/unit/news_test.rb
+++ b/test/unit/news_test.rb
@@ -46,7 +46,7 @@ class NewsTest < ActiveSupport::TestCase
end
def test_should_not_include_news_for_projects_with_news_disabled
- EnabledModule.delete_all(["project_id = ? AND name = ?", 2, 'news'])
+ EnabledModule.where(["project_id = ? AND name = ?", 2, 'news']).delete_all
project = Project.find(2)
# Add a piece of news to the project