From c2c7c3db73265a09cf4978edc43807e13ab29d19 Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Thu, 2 Aug 2007 18:31:40 +0000 Subject: [PATCH] ActionItem6: affiliation relation moved from person-profile to person-organization --- app/models/profile.rb | 2 -- test/unit/person_test.rb | 6 +----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/models/profile.rb b/app/models/profile.rb index 699aa67..0a2e9ed 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -23,8 +23,6 @@ class Profile < ActiveRecord::Base community ] - has_many :affiliations - has_many :people, :through => :affiliations has_many :domains, :as => :owner belongs_to :virtual_community diff --git a/test/unit/person_test.rb b/test/unit/person_test.rb index 3973b74..3ad8731 100644 --- a/test/unit/person_test.rb +++ b/test/unit/person_test.rb @@ -3,12 +3,8 @@ require File.dirname(__FILE__) + '/../test_helper' class PersonTest < Test::Unit::TestCase fixtures :profiles, :users - # Replace this with your real tests. - def test_truth - assert true - end - def test_can_have_user + p = Person.new(:name => 'John', :identfier => 'john') p = profiles(:johndoe) assert_kind_of User, p.user end -- libgit2 0.21.2