Commit cbd6c61e authored by tmaruyama's avatar tmaruyama

code layout clean up of test_create_with_group_assignment at test/unit/issue_test.rb

git-svn-id: https://svn.redmine.org/redmine/trunk@7477 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent f36051a7
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment