When I place a code block within a spoiler block, they collapse in on themselves and their content isn't readable (unless you quote, or press the "select" button and copy the contents somewhere)
Example:
example
code block
Spoiler
example
code block
They do appear fine in the draft/preview window, but not once it's posted & the page is refreshed.