Part of the useful behavior of a steps block is that it pushes all "before" to :all - So for instance, it would be helpful to be able to say:
inspect "A controller" do
before do
get :show
end
it "should" do
assigns[:thing].should blah
end
end
And have the before :each blocks become before :all - pushing all the ControllerTest stuff up, so that we only set up the response once, and can check several things about it in separate tests.
Part of the useful behavior of a steps block is that it pushes all "before" to :all - So for instance, it would be helpful to be able to say:
And have the before :each blocks become before :all - pushing all the ControllerTest stuff up, so that we only set up the response once, and can check several things about it in separate tests.