Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
forsbergplustwo committed Oct 12, 2023
1 parent 090f26b commit ff4d56b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/controllers/imports/destroy_all_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ class Imports::DestroyAllControllerTest < ActionDispatch::IntegrationTest
end

test "should destroy all imports" do
assert_difference("Import.count", -2) do
delete destroy_all_imports_url
end
assert_not Import.count.zero?

delete destroy_all_imports_url

assert_redirected_to imports_url
assert Import.count.zero?
end
end

0 comments on commit ff4d56b

Please sign in to comment.