Congratulations! Some quick feedback, you should add a `rspec-matchers-controller_filters.rb` file to your lib folder that just requires `rspec/matchers/controller_filters` so that your gem can be loaded by bundler automatically. You should also target `rspec-rails ~> 3.0` rather than 3 to ensure any minor version of RSpec 3, but without RSpec 4 (which could break your gem in future).
As an asidel you’re not really testing execution of action filters, but ensuring they’re setup, generally I’d expect this to be tested with integration tests rather than stubbing against the controller but if it works for you then great! You could also setup TravisCI to ensure PR’s and such run your tests to help people contributing to your project. Keep up the good work :) Jon Rowe --------------------------- [email protected] jonrowe.co.uk On Tuesday, 10 March 2015 at 05:10, Lazarus Lazaridis wrote: > Hello everybody, > > I published my first gem (rspec-matchers-controller_filters > (https://github.com/iridakos/rspec-matchers-controller_filters)) for testing > execution of before/around/after filters of controller actions with RSpec. > > https://github.com/iridakos/rspec-matchers-controller_filters > > Any feedback is welcome! > > Thanks, > Lazarus > > > -- > You received this message because you are subscribed to the Google Groups > "rspec" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > (mailto:[email protected]). > To post to this group, send email to [email protected] > (mailto:[email protected]). > To view this discussion on the web visit > https://groups.google.com/d/msgid/rspec/13dc4c80-4ea7-49f2-b5bd-6920bfc32342%40googlegroups.com > > (https://groups.google.com/d/msgid/rspec/13dc4c80-4ea7-49f2-b5bd-6920bfc32342%40googlegroups.com?utm_medium=email&utm_source=footer). > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/DFD3FF374F41414483C673730F2A90B4%40jonrowe.co.uk. For more options, visit https://groups.google.com/d/optout.
