code layout clean up test_should_not_call_after_project_change_on_creation of unit issue test

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10650 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-10-13 11:18:45 +00:00
parent eedad03141
commit 04ac60d891
1 changed files with 2 additions and 1 deletions

View File

@ -798,7 +798,8 @@ class IssueTest < ActiveSupport::TestCase
end end
def test_should_not_call_after_project_change_on_creation def test_should_not_call_after_project_change_on_creation
issue = Issue.new(:project_id => 1, :tracker_id => 1, :status_id => 1, :subject => 'Test', :author_id => 1) issue = Issue.new(:project_id => 1, :tracker_id => 1, :status_id => 1,
:subject => 'Test', :author_id => 1)
issue.expects(:after_project_change).never issue.expects(:after_project_change).never
issue.save! issue.save!
end end