[rspec-users] Passing variables to custom formatters

2013-03-20 Thread Yury Tsarev
Guys, I observing old mail http://rubyforge.org/pipermail/rspec-users/2010-March/016638.html and from it I understood that options hash is more side effect then proper way for passing variable from spec to formatter. So is there any official and supported way for doing that ? Thanks a lot in

[rspec-users] Rspec + Devise + BaseController

2013-03-20 Thread Ezequiel Delpero
Hello there, I'm creating a base controller for the admin section of a project. All controllers whitin the admin section will inherit from it. # #app/controllers/admins/base_controller.rb class Admins::BaseController ApplicationController

Re: [rspec-users] Rspec + Devise + BaseController

2013-03-20 Thread Ezequiel Delpero
Finally I could solve the problem. The problem was on the definition of the anonymous controller on the spec: instead of: controller do def index end end I used: controller(Admins::Base) do def index end end You need to specify always the anonymous

Re: [rspec-users] Rspec + Devise + BaseController

2013-03-20 Thread David Chelimsky
On Wed, Mar 20, 2013 at 11:21 AM, Ezequiel Delpero li...@ruby-forum.com wrote: Finally I could solve the problem. The problem was on the definition of the anonymous controller on the spec: instead of: controller do def index end end I used: