Skip to content

Commit 7b22ab5

Browse files
committed
Remove redundant comparison
1 parent f016290 commit 7b22ab5

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

test/integration/file_push/file_push_creation_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def test_deletable_by_viewer_enabled_or_not
168168
assert(deletable_checkbox.length == 1)
169169

170170
# DELETABLE_PASSWORDS_DEFAULT determines initial check state
171-
if Settings.files.deletable_pushes_default == true
171+
if Settings.files.deletable_pushes_default
172172
assert(deletable_checkbox.first.attributes["checked"].value == "checked")
173173
else
174174
assert(deletable_checkbox.first.attributes["checked"].nil?)

test/integration/file_push/file_push_deletion_test.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ class FilePushDeletionTest < ActionDispatch::IntegrationTest
1818
end
1919

2020
def test_deletion
21-
assert Settings.files.enable_deletable_pushes == true
22-
2321
get new_push_path(tab: "files")
2422
assert_response :success
2523

@@ -53,8 +51,6 @@ def test_deletion
5351
end
5452

5553
def test_end_user_deletion_when_enabled
56-
assert Settings.files.enable_deletable_pushes == true
57-
5854
get new_push_path(tab: "files")
5955
assert_response :success
6056

0 commit comments

Comments
 (0)