code layout clean up of test_create_with_group_assignment at test/unit/issue_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7477 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
fa373ff7f3
commit
3a7c4a0417
|
@ -74,7 +74,9 @@ class IssueTest < ActiveSupport::TestCase
|
|||
|
||||
def test_create_with_group_assignment
|
||||
with_settings :issue_group_assignment => '1' do
|
||||
assert Issue.new(:project_id => 2, :tracker_id => 1, :author_id => 1, :subject => 'Group assignment', :assigned_to_id => 11).save
|
||||
assert Issue.new(:project_id => 2, :tracker_id => 1, :author_id => 1,
|
||||
:subject => 'Group assignment',
|
||||
:assigned_to_id => 11).save
|
||||
issue = Issue.first(:order => 'id DESC')
|
||||
assert_kind_of Group, issue.assigned_to
|
||||
assert_equal Group.find(11), issue.assigned_to
|
||||
|
|
Loading…
Reference in New Issue