[rspec-users] Specs for ApplicationController, where to put them?

Luis Lavena luislavena at gmail.com
Tue May 29 19:37:59 EDT 2007

On 5/29/07, Wincent Colaiuta <win at wincent.com> wrote:
> 2. Add a ":global" option for shared behaviours which are intended to
> be included globally; only these behaviours would be skipped when
> evaluated multiple times, and normal shared behaviours would continue
> to exhibit the existing behaviour:
> describe 'All controllers', :global => true do .. end
> 3. A variation on the previous suggestion: instead of using ":global"
> and ":shared" as alternatives, continue to use ":shared" in all
> cases, but allow ":global" to be passed as an additional option:
> describe 'All controllers', :shared => true, :global => true do .. end
> Of these solutions, I think I like the second one the best. Any other
> suggestions?

describe 'All controllers', :shared => :global do

Since that will be shared anyway, what change is "context" (no pun intended).

Luis Lavena
Multimedia systems
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi

More information about the rspec-users mailing list