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:
parent
ddcd6df27f
commit
b7b933abcc
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue