Commit 23e2e7efe40332225a2684fe1e02630fd8e2e091

Authored by Daniela Feitosa
1 parent 84e3a2a0

ActionItem1067: adding argument to pass test

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
test/functional/tasks_controller_test.rb
... ... @@ -183,7 +183,7 @@ class TasksControllerTest < Test::Unit::TestCase
183 183 c = Community.create!(:name => 'test comm', :moderated_articles => false)
184 184 @controller.stubs(:profile).returns(c)
185 185 folder = c.articles.create!(:name => 'test folder', :type => 'Folder')
186   - c.affiliate(profile, Profile::Roles.all_roles)
  186 + c.affiliate(profile, Profile::Roles.all_roles(profile.environment.id))
187 187 article = profile.articles.create!(:name => 'something interesting', :body => 'ruby on rails')
188 188 t = ApproveArticle.create!(:name => 'test name', :article => article, :target => c, :requestor => profile)
189 189  
... ...