summaryrefslogtreecommitdiffstats
path: root/test/unit/member_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-04-30 09:57:58 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-04-30 09:57:58 +0000
commitb6cd076441cd0f273ac23d7a452e29189275f7ff (patch)
tree2b5d80cf14c1e899f3b6bfa6c019d0023875d8a0 /test/unit/member_test.rb
parent7ccdaee1109fb83cbd80c85fb9fc969f05ec2bea (diff)
downloadredmine-b6cd076441cd0f273ac23d7a452e29189275f7ff.tar.gz
redmine-b6cd076441cd0f273ac23d7a452e29189275f7ff.zip
Fixes an object instantiation in tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3700 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/member_test.rb')
-rw-r--r--test/unit/member_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/member_test.rb b/test/unit/member_test.rb
index 323ec1e9e..7b9d401f3 100644
--- a/test/unit/member_test.rb
+++ b/test/unit/member_test.rb
@@ -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)