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

Nested steps not being detected correctly #96

Open
enkessler opened this issue Dec 22, 2016 · 0 comments
Open

Nested steps not being detected correctly #96

enkessler opened this issue Dec 22, 2016 · 0 comments

Comments

@enkessler
Copy link
Contributor

None of the following steps will trigger the 'Nested step call' rule.

Given(/^a step that calls a step$/) do
  step "another step"
end

Given(/^another step$/) do
  step 'And yet another step'
end

Given(/^yet another step$/) do
  'foo'
end

The first step seems to get ignored because it does not use a step keyword. Coincidentally, Cucumber does not allow keywords to be used for single step calls (e.g. step "another step" will run while step "When another step" will cause an error).

Even when a keyword is present, the nested step seems to get ignored unless double quotes are used (i.e. step "And yet another step" will trigger the rule while step 'And yet another step' will not).

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