Skip to content

Parameterize shared_steps #23

Description

@nyarly

shared_examples both allow for parameters to their definition blocks, as well as accepting blocks when they're included to set up their context. c.f. https://www.relishapp.com/rspec/rspec-core/docs/example-groups/shared-examples#passing-parameters-to-a-shared-example-group

shared_steps are reasonably different, but at least one client project uses the parameterization - to arguable effect. I don't think block-for-context makes sense.

For the moment, I'm refactoring these out where I find them, but if a solid use case could be made, I might see about including the feature.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions