I’m not entirely sure what you’re asking here, but if you want to repeat tests 
/ setup for multiple controller actions then your best bet is to define and use 
shared_examples, see: 
https://www.relishapp.com/rspec/rspec-core/docs/example-groups/shared-examples 
for further details

Jon Rowe
---------------------------
jonrowe.co.uk


On Saturday, 6 September 2014 at 15:38, Alexander Kireyev wrote:

> I asked a question on SO (http://stackoverflow.com/q/25653045/724036) would 
> be great if someone could help. Briefly, I want to test scopes for all 
> controller actions at once, not repeating code for each action. I couldn't 
> find any attempts with this problem, maybe it's impossible.
>  
> --  
> 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/f9b0f517-2946-433a-a63d-1a3af4eb69ae%40googlegroups.com
>  
> (https://groups.google.com/d/msgid/rspec/f9b0f517-2946-433a-a63d-1a3af4eb69ae%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/890E46D0FB4241D0BA4B26A33E3E8FF5%40jonrowe.co.uk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to