Skip to content

Commit

Permalink
undefined method 'field_format' for nil:NilClass
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed Dec 17, 2024
1 parent 687042e commit 2818561
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test/unit/dmsf_link_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# Link tests
class DmsfLinksTest < RedmineDmsf::Test::UnitTest
fixtures :dmsf_links, :dmsf_folders, :dmsf_files, :dmsf_file_revisions
fixtures :dmsf_links, :dmsf_folders, :dmsf_files, :dmsf_file_revisions, :custom_fields, :custom_values

def test_create_folder_link
folder_link = DmsfLink.new
Expand Down
10 changes: 1 addition & 9 deletions test/unit/user_patch_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,10 @@
class UserPatchTest < RedmineDmsf::Test::UnitTest
fixtures :dmsf_links, :dmsf_locks, :dmsf_workflows, :dmsf_workflow_steps,
:dmsf_workflow_step_assignments, :dmsf_workflow_step_actions, :dmsf_folders,
:dmsf_files, :dmsf_file_revisions
:dmsf_files, :dmsf_file_revisions, :custom_fields, :custom_values

def test_remove_dmsf_references
id = @jsmith.id
###
puts ">>> #{@jsmith.custom_values.all.size}"
@jsmith.custom_values.each do |custom_value|
assert custom_value
puts ">>> #{custom_value.id}"
puts ">>> #{custom_value.field_format}"
end
###
@jsmith.destroy
assert_equal 0, DmsfFileRevisionAccess.where(user_id: id).all.size
assert_equal 0, DmsfFileRevision.where(user_id: id).all.size
Expand Down

0 comments on commit 2818561

Please sign in to comment.