Commit 074a66ad5ad3f0d7e646832c6aa6b7f76d30a8b7

Authored by AntonioTerceiro
1 parent 1fcdecaa

ActionItem96: requestor must be a Person



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@614 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 2 changed files with 2 additions and 2 deletions   Show diff stats
app/models/task.rb
... ... @@ -21,7 +21,7 @@ class Task < ActiveRecord::Base
21 21 FINISHED = 3
22 22 end
23 23  
24   - belongs_to :requestor, :class_name => 'Profile', :foreign_key => :requestor_id
  24 + belongs_to :requestor, :class_name => 'Person', :foreign_key => :requestor_id
25 25 belongs_to :target, :class_name => 'Profile', :foreign_key => :target_id
26 26  
27 27 def initialize(*args)
... ...
test/unit/task_test.rb
... ... @@ -8,7 +8,7 @@ class TaskTest < Test::Unit::TestCase
8 8 t.requestor = 1
9 9 end
10 10 assert_nothing_raised do
11   - t.requestor = Profile.new
  11 + t.requestor = Person.new
12 12 end
13 13 end
14 14  
... ...