1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Test deleting a nonexistent key

This commit is contained in:
George Claghorn 2017-07-06 17:27:27 -04:00
parent ddcd6df27f
commit b7b933abcc

View file

@ -64,5 +64,11 @@ module ActiveStorage::Service::SharedServiceTests
@service.delete FIXTURE_KEY
assert_not @service.exist?(FIXTURE_KEY)
end
test "deleting nonexistent key" do
assert_nothing_raised do
@service.delete SecureRandom.base58(24)
end
end
end
end