]> source.dussan.org Git - redmine.git/commitdiff
Fixes an object instantiation in tests.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 30 Apr 2010 09:57:58 +0000 (09:57 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 30 Apr 2010 09:57:58 +0000 (09:57 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3700 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/member_test.rb

index 323ec1e9e8c49be3e5e4d8519739c26fe7de7e0d..7b9d401f331006d6bc025e8e69d0e2ccb334feb9 100644 (file)
@@ -74,7 +74,7 @@ class MemberTest < ActiveSupport::TestCase
       Watcher.delete_all("user_id = 9")
       user = User.find(9)
       # public
-      Watcher.create!(:watchable => Issue.find(1), :user_id => user)
+      Watcher.create!(:watchable => Issue.find(1), :user => user)
       # private
       Watcher.create!(:watchable => Issue.find(4), :user => user)
       Watcher.create!(:watchable => Message.find(7), :user => user)