class ActiveStorage::BlobFindSignedTest

Overview

.find_signed and .find_signed! hit the database, hence a separate test case. :nodoc:

Defined in:

active_storage/blob_test.cr

Instance Method Summary

Instance Method Detail

def setup #

def test_find_signed_bang_raises_for_a_garbage_signed_id #

def test_find_signed_bang_raises_for_a_tampered_signed_id #

def test_find_signed_bang_raises_record_not_found_when_the_blob_is_gone #

def test_find_signed_bang_returns_the_blob #

def test_find_signed_returns_nil_for_a_garbage_signed_id #

def test_find_signed_returns_nil_for_a_mismatched_purpose #

def test_find_signed_returns_nil_for_a_tampered_signed_id #

def test_find_signed_returns_nil_for_an_expired_signed_id #

def test_find_signed_returns_nil_when_the_blob_is_gone #

def test_find_signed_returns_the_blob #