Re: [rspec-users] rails: action helper for controller specs

2011-07-13 Thread Alexander Glushkov
Not exactly. It adds a before { 'your action call' } to the end of hooks collection, so that it will called at the very end, right before the spec call. Compare two examples I provided in the comments. ___ rspec-users mailing list rspec-users@rubyforge

Re: [rspec-users] rails: action helper for controller specs

2011-07-13 Thread Justin Ko
On Wed, Jul 13, 2011 at 11:06 AM, Alexander Glushkov wrote: > Hey guys, > > just wrote a helper for controller specs in the rails. Link to the gist - > https://gist.github.com/1080421 - to view with syntax highlight. > > # Helper +action+ allows you to write something like > # > # describe "GET in

[rspec-users] rails: action helper for controller specs

2011-07-13 Thread Alexander Glushkov
Hey guys, just wrote a helper for controller specs in the rails. Link to the gist - https://gist.github.com/1080421 - to view with syntax highlight. # Helper +action+ allows you to write something like # # describe "GET index" do # action { get :index } # # context 'if user signed in' do #