From b7b933abccb7c014b00834b71ac43bccd056eb36 Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Thu, 6 Jul 2017 17:27:27 -0400 Subject: [PATCH] Test deleting a nonexistent key --- test/service/shared_service_tests.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/service/shared_service_tests.rb b/test/service/shared_service_tests.rb index 377670f4a0..b7d619843b 100644 --- a/test/service/shared_service_tests.rb +++ b/test/service/shared_service_tests.rb @@ -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