diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-12 08:39:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-12 08:39:22 +0000 |
commit | 8bde60dc56e47316aa6dbd22ab75a305c1dfc9ae (patch) | |
tree | 791c24302d556496f3f80be5a4ee910ffadbd2bf /test/unit/query_test.rb | |
parent | d8f039f48920887a50d1c555109dded05393b107 (diff) | |
download | redmine-8bde60dc56e47316aa6dbd22ab75a305c1dfc9ae.tar.gz redmine-8bde60dc56e47316aa6dbd22ab75a305c1dfc9ae.zip |
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
Diffstat (limited to 'test/unit/query_test.rb')
-rw-r--r-- | test/unit/query_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb index 3513e5a68..edf6e32ca 100644 --- a/test/unit/query_test.rb +++ b/test/unit/query_test.rb @@ -1149,11 +1149,11 @@ class QueryTest < ActiveSupport::TestCase User.add_to_project(@developer, @project, @developer_role) User.add_to_project(@boss, @project, [@manager_role, @developer_role]) - @issue1 = Issue.generate_for_project!(@project, :assigned_to_id => @manager.id) - @issue2 = Issue.generate_for_project!(@project, :assigned_to_id => @developer.id) - @issue3 = Issue.generate_for_project!(@project, :assigned_to_id => @boss.id) - @issue4 = Issue.generate_for_project!(@project, :assigned_to_id => @guest.id) - @issue5 = Issue.generate_for_project!(@project) + @issue1 = Issue.generate!(:project => @project, :assigned_to_id => @manager.id) + @issue2 = Issue.generate!(:project => @project, :assigned_to_id => @developer.id) + @issue3 = Issue.generate!(:project => @project, :assigned_to_id => @boss.id) + @issue4 = Issue.generate!(:project => @project, :assigned_to_id => @guest.id) + @issue5 = Issue.generate!(:project => @project) end should "search assigned to for users with the Role" do |