Sha256: c8beb95d2802b516d5d0b499fd10a49cd69ca72f783ae91e8734652d50062371
Contents?: true
Size: 568 Bytes
Versions: 7
Compression:
Stored size: 568 Bytes
Contents
## # spec/lib/skn_utils/catch_exceptions_spec.rb # describe SknUtils, 'Catch exceptions and retry block. ' do context "#catch_exceptions" do it '#catch_exceptions -- good block ' do expect( described_class.catch_exceptions do "good" end.value ).to eq "good" end it '#catch_exceptions -- exception block ' do expect( described_class.catch_exceptions do raise NotImplementedError, "Simulate Failures" end.value ).to include "Simulate Failures" end end end
Version data entries
7 entries across 7 versions & 1 rubygems