Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider: "inspects" - step/describe hybrid #13

Open
nyarly opened this issue Jul 15, 2013 · 0 comments
Open

Consider: "inspects" - step/describe hybrid #13

nyarly opened this issue Jul 15, 2013 · 0 comments

Comments

@nyarly
Copy link
Member

nyarly commented Jul 15, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant