@@ -498,7 +498,9 class IssueTest < ActiveSupport::TestCase | |||||
498 |
|
498 | |||
499 | def test_safe_attributes_should_not_include_readonly_fields |
|
499 | def test_safe_attributes_should_not_include_readonly_fields | |
500 | WorkflowPermission.delete_all |
|
500 | WorkflowPermission.delete_all | |
501 |
WorkflowPermission.create!(:old_status_id => 1, :tracker_id => 1, |
|
501 | WorkflowPermission.create!(:old_status_id => 1, :tracker_id => 1, | |
|
502 | :role_id => 1, :field_name => 'due_date', | |||
|
503 | :rule => 'readonly') | |||
502 | user = User.find(2) |
|
504 | user = User.find(2) | |
503 |
|
505 | |||
504 | issue = Issue.new(:project_id => 1, :tracker_id => 1) |
|
506 | issue = Issue.new(:project_id => 1, :tracker_id => 1) |
General Comments 0
You need to be logged in to leave comments.
Login now