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

Unable to parse some step definitions from feature files #49

Closed
hcahsuchit opened this issue Feb 28, 2017 · 3 comments
Closed

Unable to parse some step definitions from feature files #49

hcahsuchit opened this issue Feb 28, 2017 · 3 comments

Comments

@hcahsuchit
Copy link

Like :"Given a patient exists
And specialist type exists"

settings.json
{
"cucumberautocomplete.steps": [
"features/step_definitions/**/*.rb"
]
}

@alexkrechik
Copy link
Owner

Could you please provide 'Given a patient exists' step declaring.

Example:
When /^I select "([^"]*)" aspect as well$/ do |aspect_name|
within('#aspects_list') do
click_link aspect_name
end
step %Q(I should see "#{aspect_name}" aspect selected)
end

And please provide path to the file, where current declaration exists

Example - features/step_definitions/steps.rb

@hcahsuchit
Copy link
Author

And (/^a patient exists$/) do
@patient = FactoryGirl.build(:domestic_patient, backoffice: {rel: 'backoffice', href: @delhi_office.self_href}).save
@patient.should be_valid
@account_no = @patient.account_no
end

Path: features/step_definitions/back_office_user_journeys_steps.rb

@alexkrechik
Copy link
Owner

Fixed in 2.0.1 - please review

alexkrechik added a commit that referenced this issue Mar 9, 2017
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

2 participants