Skip to content

testing flash component with rspec #1243

Answered by boardfish
alec-c4 asked this question in Q&A
Discussion options

You must be logged in to vote

I'd hazard a guess that flash is a method on the controller instance. The block doesn't seem to be running in the context of the controller, so perhaps you need to call controller.flash instead of flash?

Haven't tried that myself, but it's my best guess. Hope it's helpful to you!

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@alec-c4
Comment options

@alec-c4
Comment options

@boardfish
Comment options

@alec-c4
Comment options

Answer selected by alec-c4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants