Skip to content

Commit

Permalink
Setting module
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed Nov 27, 2024
1 parent d0c4c07 commit 1818fd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/dmsf_file_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def test_copy_to_author
end

def test_approval_allowed_zero_minor_yes
with_settings plugin_redmine_dmsf: { 'only_approval_zero_minor_version' => true } do
with_settings plugin_redmine_dmsf: { 'only_approval_zero_minor_version' => '1' } do
@file1.last_revision.minor_version = 0
assert @file1.approval_allowed_zero_minor
@file1.last_revision.minor_version = 1
Expand All @@ -335,7 +335,7 @@ def test_approval_allowed_zero_minor_yes
end

def test_approval_allowed_zero_minor_no
with_settings plugin_redmine_dmsf: { 'only_approval_zero_minor_version' => nil } do
with_settings plugin_redmine_dmsf: { 'only_approval_zero_minor_version' => '0' } do
@file1.last_revision.minor_version = 0
assert @file1.approval_allowed_zero_minor
@file1.last_revision.minor_version = 1
Expand Down

0 comments on commit 1818fd2

Please sign in to comment.