6

I wonder how to test controllers outside of rails - in a new gem.

How to mock them and how to use Rails controller test helpers like get and post?

I am trying to test before_filter that is executed from developed module.

thesimpledev
  • 69
  • 1
  • 10
welldan97
  • 3,071
  • 2
  • 24
  • 28
  • 2
    This might be helpful http://codingdaily.wordpress.com/2011/01/14/test-a-gem-with-the-rails-3-stack/ – hers19 Jun 24 '12 at 21:11

0 Answers0