summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-09 05:08:38 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-09 05:08:38 +0000
commit95bc7bf189ca4733ce2920447f078612581a4002 (patch)
tree8131a0fd6f866eef76751ad5d22451c9c76a72cb /test/unit
parent7960f543a401614a2034a2b863ac7ba37548d67e (diff)
downloadredmine-95bc7bf189ca4733ce2920447f078612581a4002.tar.gz
redmine-95bc7bf189ca4733ce2920447f078612581a4002.zip
Rails4: replace deprecated Relation#update_all at RepositoryTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12557 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/repository_test.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb
index 95f0437ae..43c62376c 100644
--- a/test/unit/repository_test.rb
+++ b/test/unit/repository_test.rb
@@ -136,14 +136,12 @@ class RepositoryTest < ActiveSupport::TestCase
end
def test_identifier_should_not_be_frozen_for_a_saved_repository_with_blank_identifier
- Repository.update_all(["identifier = ''"], "id = 10")
-
+ Repository.where(:id => 10).update_all(["identifier = ''"])
assert_equal false, Repository.find(10).identifier_frozen?
end
def test_identifier_should_be_frozen_for_a_saved_repository_with_valid_identifier
- Repository.update_all(["identifier = 'abc123'"], "id = 10")
-
+ Repository.where(:id => 10).update_all(["identifier = 'abc123'"])
assert_equal true, Repository.find(10).identifier_frozen?
end