code layout clean up test_should_not_update_custom_fields_on_changing_tracker_with_different_custom_fields of unit issue test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10638 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
69f863b3c8
commit
a66a50eda2
|
@ -338,7 +338,9 @@ class IssueTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_should_not_update_custom_fields_on_changing_tracker_with_different_custom_fields
|
def test_should_not_update_custom_fields_on_changing_tracker_with_different_custom_fields
|
||||||
issue = Issue.create!(:project_id => 1, :tracker_id => 1, :author_id => 1, :status_id => 1, :subject => 'Test', :custom_field_values => {'2' => 'Test'})
|
issue = Issue.create!(:project_id => 1, :tracker_id => 1, :author_id => 1,
|
||||||
|
:status_id => 1, :subject => 'Test',
|
||||||
|
:custom_field_values => {'2' => 'Test'})
|
||||||
assert !Tracker.find(2).custom_field_ids.include?(2)
|
assert !Tracker.find(2).custom_field_ids.include?(2)
|
||||||
|
|
||||||
issue = Issue.find(issue.id)
|
issue = Issue.find(issue.id)
|
||||||
|
|
Loading…
Reference in New Issue