On Tue, 16 Oct 2007 01:02:58 -0500, David Chelimsky wrote: > But how do you know that it's being used? The behaviour you're > spec'ing is that a given action should redirect if the user is not > logged in, right? If you look at it that way, then it seems perfectly > acceptable to do this: > > describe "some action on some controller" do > it_should_behave_like "action that requires login" > ... > end
I see what you're saying now, and agree that that's probably the best way to approach it. Thanks. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users