Skip to content

Parameterizable Steps? #94

@ntalbott

Description

@ntalbott

I'm curious if ya'll would be open to adding a simple ability to parameterize steps. I'm not wanting regex madness (had enough of that in Cucumber!) but just something simple like:

Given %(I create an organization named :name) do |name|
  visit "/organizations/new"
  fill_in "Name", with: name
  click_on "Create"
end

It doesn't seem to break the Spinach philosophy, but I wanted to check and make sure before going off and implementing it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions