summaryrefslogtreecommitdiffstats
path: root/test/unit/default_data_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/default_data_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/default_data_test.rb')
-rw-r--r--test/unit/default_data_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/default_data_test.rb b/test/unit/default_data_test.rb
index 60dee7ad7..c22e9341f 100644
--- a/test/unit/default_data_test.rb
+++ b/test/unit/default_data_test.rb
@@ -23,7 +23,7 @@ class DefaultDataTest < ActiveSupport::TestCase
def test_no_data
assert !Redmine::DefaultData::Loader::no_data?
- Role.delete_all("builtin = 0")
+ Role.where("builtin = 0").delete_all
Tracker.delete_all
IssueStatus.delete_all
Enumeration.delete_all
@@ -33,7 +33,7 @@ class DefaultDataTest < ActiveSupport::TestCase
def test_load
valid_languages.each do |lang|
begin
- Role.delete_all("builtin = 0")
+ Role.where("builtin = 0").delete_all
Tracker.delete_all
IssueStatus.delete_all
Enumeration.delete_all