TEST: adding controller test

11 views
Skip to first unread message

andrea.s...@gmail.com

unread,
Apr 27, 2020, 8:56:58 AM4/27/20
to praxis-support
Is it possible to test controllers through RSpec?

If yes, how?

I have not found any documentation about it...

Thank you all.

--
AS

Josep Blanquer

unread,
Apr 27, 2020, 10:35:25 AM4/27/20
to praxis-support, andrea.s...@gmail.com
Yes, you can. In fact, I personally have only used rspec for any of my Praxis projects.

It’s old, but you can take at some of the patterns from This example app https://github.com/praxis/praxis-example-app. It installs the rspec gems and rack-test etc...and and has all its tests in rspec, including controller tests.

Cheers.

Josep M.

--
You received this message because you are subscribed to the Google Groups "praxis-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to praxis-suppor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/praxis-support/d8e03324-979e-485f-bc6a-99f8f5b97806%40googlegroups.com.

Salicetti Andrea

unread,
Apr 27, 2020, 11:10:56 AM4/27/20
to Josep Blanquer, praxis-support
Thank you Josep!
Reply all
Reply to author
Forward
0 new messages