Commit c2c7c3db73265a09cf4978edc43807e13ab29d19
1 parent
012be24d
Exists in
master
and in
28 other branches
ActionItem6: affiliation relation moved from person-profile to person-organization
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@316 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
1 additions
and
7 deletions
Show diff stats
app/models/profile.rb
test/unit/person_test.rb
... | ... | @@ -3,12 +3,8 @@ require File.dirname(__FILE__) + '/../test_helper' |
3 | 3 | class PersonTest < Test::Unit::TestCase |
4 | 4 | fixtures :profiles, :users |
5 | 5 | |
6 | - # Replace this with your real tests. | |
7 | - def test_truth | |
8 | - assert true | |
9 | - end | |
10 | - | |
11 | 6 | def test_can_have_user |
7 | + p = Person.new(:name => 'John', :identfier => 'john') | |
12 | 8 | p = profiles(:johndoe) |
13 | 9 | assert_kind_of User, p.user |
14 | 10 | end | ... | ... |