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
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
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
#