Commit 4d9ea63e authored by tmaruyama's avatar tmaruyama

code layout clean up test_safe_attributes_should_not_include_readonly_fields of unit issue test

git-svn-id: https://svn.redmine.org/redmine/trunk@10639 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 5d0cd510
......@@ -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)
......
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