Remove Issue.generate_for_project! test helper and use Issue.generate! instead.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10611 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-10-12 08:39:22 +00:00
parent d8f039f489
commit 8bde60dc56
6 changed files with 44 additions and 65 deletions

View File

@@ -948,7 +948,7 @@ class UserTest < ActiveSupport::TestCase
@project = Project.find(1)
@author = User.generate!
@assignee = User.generate!
@issue = Issue.generate_for_project!(@project, :assigned_to => @assignee, :author => @author)
@issue = Issue.generate!(:project => @project, :assigned_to => @assignee, :author => @author)
end
should "be true for a user with :all" do