You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: