From 0f6be546b8f555b60c3a0381f321544e4b32736f Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 13 Oct 2012 10:50:49 +0000 Subject: [PATCH] code layout clean up test_safe_attributes_should_not_include_readonly_fields of unit issue test git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10639 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/issue_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb index 6d5b21408..e0964a300 100644 --- a/test/unit/issue_test.rb +++ b/test/unit/issue_test.rb @@ -498,7 +498,9 @@ class IssueTest < ActiveSupport::TestCase def test_safe_attributes_should_not_include_readonly_fields WorkflowPermission.delete_all - WorkflowPermission.create!(:old_status_id => 1, :tracker_id => 1, :role_id => 1, :field_name => 'due_date', :rule => 'readonly') + WorkflowPermission.create!(:old_status_id => 1, :tracker_id => 1, + :role_id => 1, :field_name => 'due_date', + :rule => 'readonly') user = User.find(2) issue = Issue.new(:project_id => 1, :tracker_id => 1)