From 23e2e7efe40332225a2684fe1e02630fd8e2e091 Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Sat, 6 Jun 2009 19:07:32 -0300 Subject: [PATCH] ActionItem1067: adding argument to pass test --- test/functional/tasks_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/tasks_controller_test.rb b/test/functional/tasks_controller_test.rb index 9891001..965d105 100644 --- a/test/functional/tasks_controller_test.rb +++ b/test/functional/tasks_controller_test.rb @@ -183,7 +183,7 @@ class TasksControllerTest < Test::Unit::TestCase c = Community.create!(:name => 'test comm', :moderated_articles => false) @controller.stubs(:profile).returns(c) folder = c.articles.create!(:name => 'test folder', :type => 'Folder') - c.affiliate(profile, Profile::Roles.all_roles) + c.affiliate(profile, Profile::Roles.all_roles(profile.environment.id)) article = profile.articles.create!(:name => 'something interesting', :body => 'ruby on rails') t = ApproveArticle.create!(:name => 'test name', :article => article, :target => c, :requestor => profile) -- libgit2 0.21.2