Skip to content

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

@nyarly

Description

@nyarly

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions