Commit 01158469d0005c076e16c6b6032857f03157a063
1 parent
68f08a51
Exists in
master
and in
22 other branches
ActionItem135: making test always pass
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1110 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
test/unit/person_test.rb
1 | 1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | 2 | |
3 | 3 | class PersonTest < Test::Unit::TestCase |
4 | - fixtures :profiles, :users | |
4 | + fixtures :profiles, :users, :environments | |
5 | 5 | |
6 | 6 | def test_person_must_come_form_the_cration_of_an_user |
7 | 7 | p = Person.new(:name => 'John', :identifier => 'john') |
... | ... | @@ -17,7 +17,7 @@ class PersonTest < Test::Unit::TestCase |
17 | 17 | pr.save! |
18 | 18 | pe = User.create(:login => 'person', :email => 'person@test.net', :password => 'dhoe', :password_confirmation => 'dhoe').person |
19 | 19 | pe.save! |
20 | - member_role = Role.create(:name => 'member') | |
20 | + member_role = Role.create(:name => 'somerandomrole') | |
21 | 21 | pr.affiliate(pe, member_role) |
22 | 22 | |
23 | 23 | assert pe.memberships.include?(pr) |
... | ... | @@ -28,7 +28,7 @@ class PersonTest < Test::Unit::TestCase |
28 | 28 | e.save! |
29 | 29 | p = User.create(:login => 'person', :email => 'person@test.net', :password => 'dhoe', :password_confirmation => 'dhoe').person |
30 | 30 | p.save! |
31 | - member_role = Role.create(:name => 'member') | |
31 | + member_role = Role.create(:name => 'somerandomrole') | |
32 | 32 | e.affiliate(p, member_role) |
33 | 33 | |
34 | 34 | assert p.memberships.include?(e) | ... | ... |