[rspec-users] Specs for ApplicationController, where to put them?
anthony at digitalphenom.com
Wed May 30 16:15:48 EDT 2007
On May 29, 2007, at 7:52 PM, David Chelimsky wrote:
> I don't view that as a workaround at all. You should always be able to
> run any example file by itself. If such a file relies on other files,
> then it should require them.
> Another thing you could do is to put shared behaviours in spec/shared/
> and require everything in spec/shared from spec/spec_helper.
Thanks for the but of wisdom. It really helps to understand your intent!
> The fact that the shared examples are in another file should have no
> bearing on whether they have runtime access to whatever is in the
> behaviours that include them. This all sounds odd to me. Can you post
> a backtrace please?
I'll see if I can reconstruct the situation and post something
tonight or tomorrow. Thanks!
More information about the rspec-users