I'd love to find a code-oriented solution that obviates this problem, which
is one reason why I've been OCD'ing a bit on this little copy change.
Haven't been able to think of one yet.

Would the separate files help with load order? If we required an RSpec-only
file that doesn't check for RSpec before loading RSpec, wouldn't we be
trading NoMethodError for uninitialized constant RSpec?

On Wednesday, August 21, 2013, Joe Ferris wrote:

> In README.md:
>
> > @@ -386,13 +386,17 @@ Testing authorized controller actions
> >  -------------------------------------
> >
> >  To test controller actions that are protected by `before_filter :authorize`,
> > -include Clearance's test helpers and matchers in `spec/support/clearance.rb` or
> > -`test/test_helper.rb`:
> > +require Clearance's test helpers and matchers in your test suite. For example,
> > +in `spec/spec_helper.rb`:
>
> What about having separate files to require for rspec and test unit? Then
> you don't need to check if rspec is defined, and order isn't important.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/thoughtbot/clearance/pull/344/files#r5910785>
> .
>


-- 
Dan Croak