]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up test_editable_custom_field_values_should_return_non_readonly_cus...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 13 Oct 2012 10:51:57 +0000 (10:51 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 13 Oct 2012 10:51:57 +0000 (10:51 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10641 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/issue_test.rb

index b863278d2675ff61cbbd1f8ce09049cc03e4f959..77a59c19a45062072b31b768fea14904b29452e7 100644 (file)
@@ -543,11 +543,13 @@ class IssueTest < ActiveSupport::TestCase
   end
 
   def test_editable_custom_field_values_should_return_non_readonly_custom_values
-    cf1 = IssueCustomField.create!(:name => 'Writable field', :field_format => 'string', :is_for_all => true, :tracker_ids => [1, 2])
-    cf2 = IssueCustomField.create!(:name => 'Readonly field', :field_format => 'string', :is_for_all => true, :tracker_ids => [1, 2])
-
+    cf1 = IssueCustomField.create!(:name => 'Writable field', :field_format => 'string',
+                                   :is_for_all => true, :tracker_ids => [1, 2])
+    cf2 = IssueCustomField.create!(:name => 'Readonly field', :field_format => 'string',
+                                   :is_for_all => true, :tracker_ids => [1, 2])
     WorkflowPermission.delete_all
-    WorkflowPermission.create!(:old_status_id => 1, :tracker_id => 1, :role_id => 1, :field_name => cf2.id.to_s, :rule => 'readonly')
+    WorkflowPermission.create!(:old_status_id => 1, :tracker_id => 1, :role_id => 1,
+                               :field_name => cf2.id.to_s, :rule => 'readonly')
     user = User.find(2)
 
     issue = Issue.new(:project_id => 1, :tracker_id => 1)