Commit b45eb837ef6ae9e34fb84c598e7f375ec94e3b22
1 parent
7974fb58
Exists in
master
and in
29 other branches
ActionItem165: fixing test by adding a fixture
argh git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1910 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
test/fixtures/roles.yml
@@ -37,3 +37,8 @@ profile_member: | @@ -37,3 +37,8 @@ profile_member: | ||
37 | key: 'profile_member' | 37 | key: 'profile_member' |
38 | name: 'Profile Member' | 38 | name: 'Profile Member' |
39 | system: true | 39 | system: true |
40 | +profile_moderator: | ||
41 | + id: 7 | ||
42 | + key: 'profile_moderator' | ||
43 | + name: 'Profile Moderator' | ||
44 | + system: true |
test/unit/organization_test.rb
@@ -188,7 +188,6 @@ class OrganizationTest < Test::Unit::TestCase | @@ -188,7 +188,6 @@ class OrganizationTest < Test::Unit::TestCase | ||
188 | p = create_user('myanothertestuser').person | 188 | p = create_user('myanothertestuser').person |
189 | 189 | ||
190 | o.add_moderator(p) | 190 | o.add_moderator(p) |
191 | - o.reload | ||
192 | 191 | ||
193 | assert o.members.include?(p), "Organization should add the new moderator" | 192 | assert o.members.include?(p), "Organization should add the new moderator" |
194 | end | 193 | end |